cartodb/db/migrate/20130424180022_visualizations.rb
2020-06-15 10:58:47 +08:00

15 lines
281 B
Ruby

class VisualizationsFixMigration < Sequel::Migration
def up
SequelRails.connection.run(%Q{
ALTER TABLE visualizations
ALTER COLUMN map_id
TYPE integer
USING map_id::integer
})
end #up
def down
end #down
end # VisualizationsFixMigration