cartodb/db/migrate/20130220153907_update_old_layers_updated_at.rb

9 lines
153 B
Ruby
Raw Normal View History

2020-06-15 10:58:47 +08:00
Sequel.migration do
up do
SequelRails.connection.run("UPDATE layers SET updated_at = NOW() WHERE updated_at IS NULL")
end
down do
end
end