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.1 vendor/bundle/ruby/2.3/gems/enju_seed-0.2.0/spec/dummy/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/enju_biblio-0.2.0/spec/dummy/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb
enju_leaf-1.2.1 spec/dummy/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/enju_library-0.2.2/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/enju_biblio-0.2.1/spec/dummy/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/enju_manifestation_viewer-0.2.0/spec/dummy/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb
enju_library-0.2.2 db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb
enju_seed-0.2.1 spec/dummy/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb
enju_biblio-0.2.1 spec/dummy/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb
enju_news-0.2.0 spec/dummy/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb
enju_seed-0.3.0.beta.3 spec/dummy/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb
enju_library-0.2.1 db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb
enju_circulation-0.2.1 spec/dummy/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb
enju_question-0.2.0 spec/dummy/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb
enju_inventory-0.2.0 spec/dummy/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb
enju_seed-0.3.0.beta.2 spec/dummy/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb
enju_purchase_request-0.2.0 spec/dummy/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb
enju_search_log-0.2.0 spec/dummy/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb
enju_bookmark-0.2.0 spec/dummy/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb
enju_loc-0.2.0 spec/dummy/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb