cartodb/db/migrate/20130220145819_add_default_to_layers_updated_at.rb

9 lines
186 B
Ruby
Raw Normal View History

2020-06-15 10:58:47 +08:00
class AddDefaultToLayersUpdatedAt < Sequel::Migration
def up
SequelRails.connection.run("ALTER TABLE layers ALTER COLUMN updated_at SET DEFAULT NOW()")
end
def down
end
end