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

12 lines
292 B
Ruby

Sequel.migration do
change do
alter_table :visualizations do
set_column_default :created_at, Sequel::CURRENT_TIMESTAMP
set_column_default :updated_at, Sequel::CURRENT_TIMESTAMP
add_column :created_at, DateTime
add_column :updated_at, DateTime
end
end
end