cartodb-4.42/db/migrate/20160720152600_add_service_providers.rb
2024-04-06 05:25:13 +00:00

28 lines
687 B
Ruby

Sequel.migration do
up do
alter_table(:users) do
add_column :geocoder_provider, :text
add_column :isolines_provider, :text
add_column :routing_provider, :text
end
alter_table(:organizations) do
add_column :geocoder_provider, :text
add_column :isolines_provider, :text
add_column :routing_provider, :text
end
end
down do
alter_table(:users) do
drop_column :geocoder_provider
drop_column :isolines_provider
drop_column :routing_provider
end
alter_table(:organizations) do
drop_column :geocoder_provider
drop_column :isolines_provider
drop_column :routing_provider
end
end
end