There are some rules which only affect migration files, and we cannot enable them if we're excluding those files from being inspected. We're also changing migrations related to the Rails/TimeZone rule slightly because these fields were already changed afterwards, so we aren't changing the schema.
6 lines
180 B
Ruby
6 lines
180 B
Ruby
class DefaultPasswordChangedAt < ActiveRecord::Migration[4.2]
|
|
def change
|
|
change_column :users, :password_changed_at, :datetime, null: false, default: Time.zone.now
|
|
end
|
|
end
|