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

14 lines
246 B
Ruby

Sequel.migration do
up do
create_table :layers_user_tables do
primary_key :id
foreign_key :layer_id, :layers
foreign_key :user_table_id, :user_tables
end
end
down do
drop_table :layers_user_tables
end
end