Sha256: 68d4b8c7b8b61471f7cc42fc743d3bd59eb3e683d2d4ead0d0edf621bd2b0a8b

Contents?: true

Size: 710 Bytes

Versions: 12

Compression:

Stored size: 710 Bytes

Contents

class ClearanceCreateUsers < ActiveRecord::Migration
  def self.up
    create_table(:users) do |t|
      t.string   :email
      t.string   :encrypted_password, :limit => 128
      t.string   :salt,               :limit => 128
      t.string   :confirmation_token, :limit => 128
      t.string   :remember_token,     :limit => 128
      t.string   :name,               :limit => 128
      t.integer  :fbid        
      t.boolean  :email_confirmed, :default => false, :null => false
      t.timestamps
    end

    add_index :users, [:id, :confirmation_token]
    add_index :users, :email
    add_index :users, :fbid
    add_index :users, :remember_token
  end

  def self.down
    drop_table :users
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
fbdoorman-0.7.1 generators/fbdoorman/templates/migrations/create_users.rb
fbdoorman-0.7.0 generators/fbdoorman/templates/migrations/create_users.rb
fbdoorman-0.1.0 generators/fbdoorman/templates/migrations/create_users.rb
fbdoorman-0.0.9 generators/fbdoorman/templates/migrations/create_users.rb
fbdoorman-0.0.8 generators/fbdoorman/templates/migrations/create_users.rb
fbdoorman-0.0.7 generators/fbdoorman/templates/migrations/create_users.rb
fbdoorman-0.0.6 generators/fbdoorman/templates/migrations/create_users.rb
fbdoorman-0.0.5 generators/fbdoorman/templates/migrations/create_users.rb
fbdoorman-0.0.4 generators/fbdoorman/templates/migrations/create_users.rb
fbdoorman-0.0.3 generators/fbdoorman/templates/migrations/create_users.rb
fbdoorman-0.0.2 generators/fbdoorman/templates/migrations/create_users.rb
fbdoorman-0.0.1 generators/fbdoorman/templates/migrations/create_users.rb