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_bookmark-0.2.1 spec/dummy/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb
enju_subject-0.2.2 spec/dummy/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb
enju_circulation-0.2.3 spec/dummy/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb
enju_message-0.2.2 spec/dummy/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb
enju_biblio-0.2.3 spec/dummy/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb
enju_library-0.2.3 db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb
enju_seed-0.2.2 spec/dummy/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb
enju_ndl-0.2.3 spec/dummy/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb
enju_ndl-0.2.2 spec/dummy/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb
enju_grid-0.2.0 spec/dummy/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb
enju_biblio-0.2.2 spec/dummy/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb
enju_manifestation_viewer-0.2.1 spec/dummy/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb
enju_circulation-0.2.2 spec/dummy/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb
enju_ndl-0.2.1 spec/dummy/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb
enju_event-0.2.1 spec/dummy/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb
enju_message-0.2.1 spec/dummy/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb
enju_subject-0.2.1 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_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_biblio-0.2.0/spec/dummy/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb