Sha256: ecc814f39153402c700108ab18242f44682f529d9320e6c67b29a60340027d76

Contents?: true

Size: 263 Bytes

Versions: 5

Compression:

Stored size: 263 Bytes

Contents

class AddPerishableTokenToPeople < ActiveRecord::Migration
  def self.up
    add_column :people, :perishable_token, :string, :null => :false
    User.all.map(&:reset_perishable_token!)
  end

  def self.down
    remove_column :people, :perishable_token
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
forgeos_core-1.9.5.rc1 db/migrate/20110310144114_add_perishable_token_to_people.rb
forgeos_core-1.9.4 db/migrate/20110310144114_add_perishable_token_to_people.rb
forgeos_core-1.9.3 db/migrate/20110310144114_add_perishable_token_to_people.rb
forgeos_core-1.9.2 db/migrate/20110310144114_add_perishable_token_to_people.rb
forgeos_core-1.9.1 db/migrate/20110310144114_add_perishable_token_to_people.rb