21
1
Fork 0
mirror of https://github.com/Evolix/chexpire.git synced 2024-04-29 15:30:49 +02:00
chexpire/db/migrate/20180830083927_remove_obsolete_fields_to_notifications.rb

10 lines
373 B
Ruby

# Copyright (C) 2018 Colin Darie <colin@darie.eu>, 2018 Evolix <info@evolix.fr>
# License: GNU AGPL-3+ (see full text in LICENSE file)
class RemoveObsoleteFieldsToNotifications < ActiveRecord::Migration[5.2]
def change
remove_column :notifications, :status, :integer, null: false, limit: 1, default: 0
remove_column :notifications, :sent_at, :datetime
end
end