You want to create a migration that renames the username column to user_name in the users table. Which code snippet is correct?
ASchema::renameColumn('users', 'username', 'user_name');
BSchema::table('users', function (Blueprint $table) {
$table->renameColumn('username', 'user_name');
});
CSchema::table('users', function (Blueprint $table) {
$table->string('user_name');
$table->dropColumn('username');
});
DSchema::table('users', function (Blueprint $table) {
$table->changeColumn('username', 'user_name');
});