cartodb/db/migrate/20120903161841_layers_users.rb

16 lines
251 B
Ruby
Raw Normal View History

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