Sha256: 0a0892bae15e13551787b9b6018b73b6f4b76e2019bd6b1f5f2c33802b808467

Contents?: true

Size: 669 Bytes

Versions: 13

Compression:

Stored size: 669 Bytes

Contents

class AddAuthenticationToPeople < ActiveRecord::Migration
  def self.up
    add_column :people, :username,         :string  # for user identification
    add_column :people, :password_digest,  :string

    add_column :people, :email,            :string  # for forgotten-credentials
    add_column :people, :token,            :string  # for forgotten-credentials
    add_column :people, :token_created_at, :string  # for forgotten-credentials
  end

  def self.down
    remove_column :people, :username
    remove_column :people, :password_digest
    remove_column :people, :email
    remove_column :people, :token
    remove_column :people, :token_created_at
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
quo_vadis-1.4.2 test/dummy/db/migrate/20111004132342_add_authentication_to_people.rb
quo_vadis-1.4.1 test/dummy/db/migrate/20111004132342_add_authentication_to_people.rb
quo_vadis-1.4.0 test/dummy/db/migrate/20111004132342_add_authentication_to_people.rb
quo_vadis-1.3.2 test/dummy/db/migrate/20111004132342_add_authentication_to_people.rb
quo_vadis-1.3.1 test/dummy/db/migrate/20111004132342_add_authentication_to_people.rb
quo_vadis-1.3.0 test/dummy/db/migrate/20111004132342_add_authentication_to_people.rb
quo_vadis-1.2.3 test/dummy/db/migrate/20111004132342_add_authentication_to_people.rb
quo_vadis-1.2.2 test/dummy/db/migrate/20111004132342_add_authentication_to_people.rb
quo_vadis-1.2.1 test/dummy/db/migrate/20111004132342_add_authentication_to_people.rb
quo_vadis-1.2.0 test/dummy/db/migrate/20111004132342_add_authentication_to_people.rb
quo_vadis-1.1.2 test/dummy/db/migrate/20111004132342_add_authentication_to_people.rb
quo_vadis-1.1.1 test/dummy/db/migrate/20111004132342_add_authentication_to_people.rb
quo_vadis-1.1.0 test/dummy/db/migrate/20111004132342_add_authentication_to_people.rb