Remove migrations warning
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)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
class AddTimeZoneToDefaultDatetimes < ActiveRecord::Migration
|
||||
class AddTimeZoneToDefaultDatetimes < ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
change_column_default :users, :password_changed_at, DateTime.new(2015, 1, 1, 1, 1, 1, '+00:00')
|
||||
change_column_default :locks, :locked_until, DateTime.new(2000, 1, 1, 1, 1, 1, '+00:00')
|
||||
|
||||
Reference in New Issue
Block a user