Sha256: bed59e95dd7f21279715a18c21d50345ac5c4f6b00e6bba9fea4346f8ee96d58

Contents?: true

Size: 600 Bytes

Versions: 9

Compression:

Stored size: 600 Bytes

Contents

class CreateSparklyPasswords < ActiveRecord::Migration
  def self.up
    create_table :passwords do |t|
      t.string :secret
      t.string :salt
      
      t.string :persistence_token   # the token stored in cookies to persist the user's session
      t.string :single_access_token # used to authenticate a user for a single request. This is not persisted.
      t.string :perishable_token    # used in confirming an account, usually via email
      
      t.references :authenticatable, :polymorphic => true
      t.timestamps
    end
  end

  def self.down
    drop_table :passwords
  end
end

Version data entries

9 entries across 5 versions & 1 rubygems

Version Path
sparkly-auth-1.2.1 spec_env/rails3/db/migrate/001_create_sparkly_passwords.rb
sparkly-auth-1.2.1 generators/sparkly/templates/migrations/create_sparkly_passwords.rb
sparkly-auth-1.2.1 spec_env/rails2/db/migrate/001_create_sparkly_passwords.rb
sparkly-auth-1.1.0 spec_env/rails2/db/migrate/001_create_sparkly_passwords.rb
sparkly-auth-1.1.0 generators/sparkly/templates/migrations/create_sparkly_passwords.rb
sparkly-auth-1.1.0 spec_env/rails3/db/migrate/001_create_sparkly_passwords.rb
sparkly-auth-1.0.2 generators/sparkly/templates/migrations/create_sparkly_passwords.rb
sparkly-auth-1.0.1 generators/sparkly/templates/migrations/create_sparkly_passwords.rb
sparkly-auth-1.0.0 generators/sparkly/templates/migrations/create_sparkly_passwords.rb