Sha256: f32d82ddeb9edbee4890be2a2af1b927695d27655061392ad9f34e51ec5bfd21

Contents?: true

Size: 367 Bytes

Versions: 10

Compression:

Stored size: 367 Bytes

Contents

class AddValidPeriodForNewUserToUserGroup < ActiveRecord::Migration[5.2]
  def self.up
    add_column :user_groups, :valid_period_for_new_user, :integer, default: 0, null: false
    add_column :user_groups, :expired_at, :timestamp
  end

  def self.down
    remove_column :user_groups, :valid_period_for_new_user
    remove_column :user_groups, :expired_at
  end
end

Version data entries

10 entries across 10 versions & 10 rubygems

Version Path
enju_inventory-0.4.0.rc.1 spec/dummy/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb
enju_ndl-0.4.0.rc.1 spec/dummy/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb
enju_circulation-0.4.0.rc.1 spec/dummy/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb
enju_manifestation_viewer-0.4.0.rc.1 spec/dummy/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb
enju_subject-0.4.0.rc.1 spec/dummy/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb
enju_event-0.4.0.rc.1 spec/dummy/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb
enju_message-0.4.0.rc.1 spec/dummy/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb
enju_biblio-0.4.0.rc.1 spec/dummy/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb
enju_library-0.4.0.rc.1 db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb
enju_seed-0.4.0.rc.2 spec/dummy/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb