cartodb/db/migrate/20130521163240_add_timestamps_to_visualization.rb

12 lines
292 B
Ruby
Raw Normal View History

2020-06-15 10:58:47 +08:00
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