Sha256: da6eeb5614cabfebe19bd9dbeaf8b4567ed08a7f76e926bbb462908e7eaced86

Contents?: true

Size: 615 Bytes

Versions: 1

Compression:

Stored size: 615 Bytes

Contents

class AddNumberOfDayToNotifyOverdueToUserGroup < ActiveRecord::Migration[5.0]
  def self.up
    add_column :user_groups, :number_of_day_to_notify_overdue, :integer, default: 1, null: false
    add_column :user_groups, :number_of_day_to_notify_due_date, :integer, default: 7, null: false
    add_column :user_groups, :number_of_time_to_notify_overdue, :integer, default: 3, null: false
  end

  def self.down
    remove_column :user_groups, :number_of_time_to_notify_overdue
    remove_column :user_groups, :number_of_day_to_notify_due_date
    remove_column :user_groups, :number_of_day_to_notify_overdue
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
enju_seed-0.3.0.beta.4 spec/dummy/db/migrate/20110627122938_add_number_of_day_to_notify_overdue_to_user_group.rb