You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
trustieforge/db/migrate/20150510100343_change_autol...

10 lines
214 B

class ChangeAutologinFromSettings < ActiveRecord::Migration
def up
Setting.where(name: 'autologin').update_all(value: 60)
end
def down
Setting.where(name: 'autologin').update_all(value: 7)
end
end