move replace to proper migration

pull/6956/head
Guido Fioravantti 9 years ago
parent 0b44937a28
commit dabd6e626e

@ -1,5 +1,7 @@
Sequel.migration do
up do
Rails::Sequel.connection.run(%{ UPDATE layers SET kind = 'carto' WHERE kind IS NULL; })
alter_table :layers do
set_column_not_null(:kind)
end

Loading…
Cancel
Save