cartodb/db/migrate/20130627164229_increase_default_user_max_layers.rb

16 lines
356 B
Ruby
Raw Permalink Normal View History

2020-06-15 10:58:47 +08:00
class IncreaseDefaultUserMaxLayers < Sequel::Migration
def up
alter_table :users do
set_column_default :max_layers, 4
end
::User.db.run("UPDATE users set max_layers = 4")
end #up
def down
alter_table :users do
set_column_default :max_layers, 3
end
::User.db.run("UPDATE users set max_layers = 3")
end #down
end