cartodb/db/migrate/20130220145819_add_default_to_layers_updated_at.rb
2020-06-15 10:58:47 +08:00

9 lines
186 B
Ruby

class AddDefaultToLayersUpdatedAt < Sequel::Migration
def up
SequelRails.connection.run("ALTER TABLE layers ALTER COLUMN updated_at SET DEFAULT NOW()")
end
def down
end
end