cartodb-4.42/db/migrate/20130627164229_increase_default_user_max_layers.rb

16 lines
356 B
Ruby
Raw Normal View History

2024-04-06 13:25:13 +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