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)
12 lines
248 B
Ruby
12 lines
248 B
Ruby
class AddsResilientLockedUntilDefault < ActiveRecord::Migration[4.2]
|
|
|
|
def up
|
|
change_column_default :locks, :locked_until, Time.new(2000, 1, 1, 1, 1, 1)
|
|
end
|
|
|
|
def down
|
|
change_column_default :locks, :locked_until, Time.now
|
|
end
|
|
|
|
end
|