cartodb-4.42/db/migrate/20130521163240_add_timestamps_to_visualization.rb

12 lines
292 B
Ruby
Raw Normal View History

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