Add and apply ArgumentAlignment rubocop rule
We're choosing the default `with_first_argument` style because it's the one we use the most.
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
class AddTimeZoneToDefaultDatetimes < ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
change_column_default :users, :password_changed_at,
|
||||
from: Time.zone.local(2015, 1, 1, 1, 1, 1),
|
||||
to: DateTime.new(2015, 1, 1, 1, 1, 1, "+00:00")
|
||||
from: Time.zone.local(2015, 1, 1, 1, 1, 1),
|
||||
to: DateTime.new(2015, 1, 1, 1, 1, 1, "+00:00")
|
||||
|
||||
change_column_default :locks, :locked_until,
|
||||
from: Time.zone.local(2000, 1, 1, 1, 1, 1),
|
||||
to: DateTime.new(2000, 1, 1, 1, 1, 1, "+00:00")
|
||||
from: Time.zone.local(2000, 1, 1, 1, 1, 1),
|
||||
to: DateTime.new(2000, 1, 1, 1, 1, 1, "+00:00")
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user