Sha256: 98fa7f1396ac182bf0caea6cf4b4e88ee0a20c8b363650bf4ea470183d4d3903

Contents?: true

Size: 368 Bytes

Versions: 392

Compression:

Stored size: 368 Bytes

Contents

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

392 entries across 384 versions & 23 rubygems

Version Path
enju_leaf-1.2.2 spec/dummy/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb
enju_manifestation_viewer-0.2.4 spec/dummy/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb
enju_library-0.2.5 db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb
enju_manifestation_viewer-0.2.3 spec/dummy/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb
enju_biblio-0.2.5 spec/dummy/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb
enju_bookmark-0.2.2 spec/dummy/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb
enju_purchase_request-0.2.1 spec/dummy/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb
enju_inter_library_loan-0.2.0 spec/dummy/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb
enju_message-0.2.4 spec/dummy/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb
enju_event-0.2.3 spec/dummy/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb
enju_circulation-0.2.5 spec/dummy/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb
enju_seed-0.2.3 spec/dummy/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb
enju_biblio-0.2.4 spec/dummy/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb
enju_subject-0.2.3 spec/dummy/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb
enju_manifestation_viewer-0.2.2 spec/dummy/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb
enju_library-0.2.4 db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb
enju_message-0.2.3 spec/dummy/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb
enju_event-0.2.2 spec/dummy/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb
enju_circulation-0.2.4 spec/dummy/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb
enju_nii-0.2.1 spec/dummy/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb