cartodb-4.29/db/migrate/20120903161841_layers_users.rb
2020-06-15 10:58:47 +08:00

16 lines
251 B
Ruby

class LayersUsersMigration < Sequel::Migration
def up
create_table :layers_users do
primary_key :id
foreign_key :layer_id, :layers
foreign_key :user_id, :users
end
end
def down
drop_table :layers_users
end
end