Sha256: 4f56a750bef07c1b3f87049f75eedc43b93c8bc8bbc7c08eda7b6ed7990c9d29

Contents?: true

Size: 540 Bytes

Versions: 11

Compression:

Stored size: 540 Bytes

Contents

class CreateUsers < ActiveRecord::Migration
  def self.up
    create_table :users do |t|
      t.string :email, :limit => 128, :null => false
      t.string :email_hash, :limit => 64, :null => false
      t.string :password_salt, :limit => 16, :null => true
      t.string :password_hash, :limit => 64, :null => true
      
      t.timestamps
    end
    
    add_index :users, :email, :unique => true, :null => false
    add_index :users, :email_hash, :unique => true, :null => false
  end

  def self.down
    drop_table :users
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
authpwn_rails-0.9.6 lib/authpwn_rails/generators/templates/001_create_users.rb
authpwn_rails-0.9.5 lib/authpwn_rails/generators/templates/001_create_users.rb
authpwn_rails-0.9.4 lib/authpwn_rails/generators/templates/001_create_users.rb
authpwn_rails-0.9.3 lib/authpwn_rails/generators/templates/001_create_users.rb
authpwn_rails-0.9.2 lib/authpwn_rails/generators/templates/001_create_users.rb
authpwn_rails-0.9.1 lib/authpwn_rails/generators/templates/001_create_users.rb
authpwn_rails-0.9.0 lib/authpwn_rails/generators/templates/001_create_users.rb
authpwn_rails-0.8.3 lib/authpwn_rails/generators/templates/001_create_users.rb
authpwn_rails-0.8.2 lib/authpwn_rails/generators/templates/001_create_users.rb
authpwn_rails-0.8.1 lib/authpwn_rails/generators/templates/001_create_users.rb
authpwn_rails-0.8.0 lib/authpwn_rails/generators/templates/001_create_users.rb