Sha256: e2fa747722ccd117565bf290d379d673357349c392b5635e31b8bd5e7397bc55

Contents?: true

Size: 628 Bytes

Versions: 505

Compression:

Stored size: 628 Bytes

Contents

class AddNumberOfDayToNotifyOverdueToUserGroup < ActiveRecord::Migration
  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

505 entries across 498 versions & 14 rubygems

Version Path
enju_circulation-0.0.8 db/migrate/20110627122938_add_number_of_day_to_notify_overdue_to_user_group.rb
enju_circulation-0.0.7 db/migrate/20110627122938_add_number_of_day_to_notify_overdue_to_user_group.rb
enju_circulation-0.0.6 db/migrate/20110627122938_add_number_of_day_to_notify_overdue_to_user_group.rb
enju_circulation-0.0.4 db/migrate/20110627122938_add_number_of_day_to_notify_overdue_to_user_group.rb
enju_circulation-0.0.3 db/migrate/20110627122938_add_number_of_day_to_notify_overdue_to_user_group.rb