cartodb/db/migrate/20120321191228_change_data_import_timestamp_default.rb

13 lines
213 B
Ruby
Raw Permalink Normal View History

2020-06-15 10:58:47 +08:00
class ChangeDataImportTimestampDefaultMigration < Sequel::Migration
def up
alter_table(:data_imports) do
set_column_default :created_at, Sequel::CURRENT_TIMESTAMP
end
end
def down
end
end