cartodb-4.42/db/migrate/20160309173100_analysis_params_to_analysis.rb

16 lines
391 B
Ruby
Raw Normal View History

2024-04-06 13:25:13 +08:00
Sequel.migration do
up do
rename_column :analyses, :params, :analysis_definition
SequelRails.connection.run(%{
alter index analysis_params_id rename to analyses_analisis_id
})
end
down do
rename_column :analyses, :analysis_definition, :params
SequelRails.connection.run(%{
alter index analyses_analisis_id rename to analysis_params_id
})
end
end