Sha256: f600043d5637c82c6f0700d7e0779f525b16294c623ee9450621c9971626aad4

Contents?: true

Size: 415 Bytes

Versions: 23

Compression:

Stored size: 415 Bytes

Contents

class CreateUsers < ActiveRecord::Migration
  def self.up
    create_table :users do |t|
      t.string :email, :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
  end

  def self.down
    drop_table :users
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
authpwn_rails-0.7.5 lib/authpwn_rails/generators/templates/001_create_users.rb
authpwn_rails-0.7.4 lib/authpwn_rails/generators/templates/001_create_users.rb
authpwn_rails-0.7.3 lib/authpwn_rails/generators/templates/001_create_users.rb
authpwn_rails-0.7.2 lib/authpwn_rails/generators/templates/001_create_users.rb
authpwn_rails-0.7.1 lib/authpwn_rails/generators/templates/001_create_users.rb
authpwn_rails-0.7.0 lib/authpwn_rails/generators/templates/001_create_users.rb
authpwn_rails-0.6.0 lib/authpwn_rails/generators/templates/001_create_users.rb
authpwn_rails-0.5.6 lib/authpwn_rails/generators/templates/001_create_users.rb
authpwn_rails-0.5.5 lib/authpwn_rails/generators/templates/001_create_users.rb
authpwn_rails-0.5.4 lib/authpwn_rails/generators/templates/001_create_users.rb
authpwn_rails-0.5.3 lib/authpwn_rails/generators/templates/001_create_users.rb
authpwn_rails-0.5.2 lib/authpwn_rails/generators/templates/001_create_users.rb
authpwn_rails-0.5.1 lib/authpwn_rails/generators/templates/001_create_users.rb
authpwn_rails-0.5.0 lib/authpwn_rails/generators/templates/001_create_users.rb
authpwn_rails-0.4.7 lib/authpwn_rails/generators/templates/001_create_users.rb
authpwn_rails-0.4.6 lib/authpwn_rails/generators/templates/001_create_users.rb
authpwn_rails-0.4.5 lib/authpwn_rails/generators/templates/001_create_users.rb
authpwn_rails-0.4.4 lib/authpwn_rails/generators/templates/001_create_users.rb
authpwn_rails-0.4.3 lib/authpwn_rails/generators/templates/001_create_users.rb
authpwn_rails-0.4.2 lib/authpwn_rails/generators/templates/001_create_users.rb