DEPRECATION WARNING: Directly inheriting from ActiveRecord::Migration is deprecated. Please specify the Rails release the migration was written for: class MigrationClass < ActiveRecord::Migration[4.2] (called from require at bin/rails:4)
11 lines
351 B
Ruby
11 lines
351 B
Ruby
class ChangesUserRegistrationsFields < ActiveRecord::Migration[4.2]
|
|
def change
|
|
add_column :users, :username, :string
|
|
|
|
remove_column :users, :first_name, :string
|
|
remove_column :users, :last_name, :string
|
|
remove_column :users, :nickname, :string
|
|
remove_column :users, :use_nickname, :boolean, default: false, null: false
|
|
end
|
|
end
|