cartodb-4.42/db/migrate/20130521163240_add_timestamps_to_visualization.rb
2024-04-06 05:25:13 +00: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