cartodb/db/migrate/20120719104544_maps.rb

20 lines
423 B
Ruby
Raw Normal View History

2020-06-15 10:58:47 +08:00
class MapsMigration < Sequel::Migration
def up
create_table :maps do
primary_key :id
Integer :user_id, :null => false, :index => true
String :provider, :text => true
String :bounding_box_sw, :text => true
String :bounding_box_ne, :text => true
String :center, :text => true
Integer :zoom
end
end
def down
drop_table :maps
end
end