cartodb-4.42/db/migrate/20130627164229_increase_default_user_max_layers.rb
2024-04-06 05:25:13 +00:00

16 lines
356 B
Ruby

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