cartodb-4.42/db/migrate/20120903161841_layers_users.rb

16 lines
251 B
Ruby
Raw Normal View History

2024-04-06 13:25:13 +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