cartodb/db/migrate/20130524105247_layers_user_tables.rb

14 lines
246 B
Ruby
Raw Normal View History

2020-06-15 10:58:47 +08:00
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