femslash-city/migrations/030_fix_event_timestamp.rb

12 lines
255 B
Ruby
Raw Normal View History

Sequel.migration do
up {
DB.drop_column :events, :created_at
DB.add_column :events, :created_at, :timestamp, index: true
}
down {
DB.drop_column :events, :created_at
DB.add_column :events, :created_at, :integer, index: true
}
end