socialforge/db/migrate/20150510100343_change_autol...

10 lines
214 B
Ruby
Raw Normal View History

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