cartodb-4.42/db/migrate/20120321191228_change_data_import_timestamp_default.rb

13 lines
213 B
Ruby
Raw Normal View History

2024-04-06 13:25:13 +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