Sha256: 7eb90a174bed66a9b638cb52a3423262f86b36bfac05ab46979012ed114f3b92

Contents?: true

Size: 800 Bytes

Versions: 22

Compression:

Stored size: 800 Bytes

Contents

class CreateUsers < ActiveRecord::Migration
  def self.up
    create_table "users", :force => true do |t|
      t.column :login,                     :string, :limit => 40
      t.column :name,                      :string, :limit => 100, :default => '', :null => true
      t.column :email,                     :string, :limit => 100
      t.column :crypted_password,          :string, :limit => 40
      t.column :salt,                      :string, :limit => 40
      t.column :created_at,                :datetime
      t.column :updated_at,                :datetime
      t.column :remember_token,            :string, :limit => 40
      t.column :remember_token_expires_at, :datetime


    end
    add_index :users, :login, :unique => true
  end

  def self.down
    drop_table "users"
  end
end

Version data entries

22 entries across 22 versions & 2 rubygems

Version Path
simonmenke-mr_authentication-0.0.1 db/migrations/20081022101325_create_users.rb
branston-0.6.6 lib/branston/db/migrate/20091127114237_create_users.rb
branston-0.6.5 lib/branston/db/migrate/20091127114237_create_users.rb
branston-0.6.4 lib/branston/db/migrate/20091127114237_create_users.rb
branston-0.6.3 lib/branston/db/migrate/20091127114237_create_users.rb
branston-0.6.2 lib/branston/db/migrate/20091127114237_create_users.rb
branston-0.6.1 lib/branston/db/migrate/20091127114237_create_users.rb
branston-0.6.0 lib/branston/db/migrate/20091127114237_create_users.rb
branston-0.5.2 lib/branston/db/migrate/20091127114237_create_users.rb
branston-0.5.1 lib/branston/db/migrate/20091127114237_create_users.rb
branston-0.5.0 lib/branston/db/migrate/20091127114237_create_users.rb
branston-0.4.6 lib/branston/db/migrate/20091127114237_create_users.rb
branston-0.4.5 lib/branston/db/migrate/20091127114237_create_users.rb
branston-0.4.4 lib/branston/db/migrate/20091127114237_create_users.rb
branston-0.4.3 lib/branston/db/migrate/20091127114237_create_users.rb
branston-0.4.2 lib/branston/db/migrate/20091127114237_create_users.rb
branston-0.4.1 lib/branston/db/migrate/20091127114237_create_users.rb
branston-0.4.0 lib/branston/db/migrate/20091127114237_create_users.rb
branston-0.3.6 lib/branston/db/migrate/20091127114237_create_users.rb
branston-0.3.4 lib/branston/db/migrate/20091127114237_create_users.rb