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)
7 lines
207 B
Ruby
7 lines
207 B
Ruby
class AddGenreAndDobToUsers < ActiveRecord::Migration[4.2]
|
|
def change
|
|
add_column :users, :genre, :string, index: true, limit: 10
|
|
add_column :users, :date_of_birth, :datetime, index: true
|
|
end
|
|
end
|