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
257 B
Ruby
11 lines
257 B
Ruby
class FixPasswordChangedAtDefault < ActiveRecord::Migration[4.2]
|
|
def up
|
|
change_column_default :users, :password_changed_at, Time.new(2015, 1, 1, 1, 1, 1)
|
|
end
|
|
|
|
def down
|
|
change_column_default :users, :password_changed_at, Time.now
|
|
end
|
|
|
|
end
|