Sha256: 29632106526ce25cc24b696f22a1cd3ecd0c285d7e960493f729927df234b95d

Contents?: true

Size: 451 Bytes

Versions: 16

Compression:

Stored size: 451 Bytes

Contents

class CreateUsers < ActiveRecord::Migration
  def self.up
    create_table :users do |t|
      t.string :email
      t.string :password
      t.string :first_name
      t.string :last_name
      t.string :gender
      t.string :mugshot
      t.string :locale
      t.string :link
      
      t.timestamps
    end
    
    add_index :users, [:email]
    add_index :users, [:email, :password]    
  end

  def self.down
    drop_table :users
  end
end

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
platform-3.1.4 test/dummy/db/migrate/20101207014543_create_users.rb
tr8n-3.2.3 local/tr8n_server/db/migrate/20101207014543_create_users.rb
tr8n-3.2.2 local/tr8n_server/db/migrate/20101207014543_create_users.rb
tr8n-3.2.1 local/tr8n_server/db/migrate/20101207014543_create_users.rb
tr8n-3.2.0 local/tr8n_server/db/migrate/20101207014543_create_users.rb
tr8n-3.1.8 local/tr8n_server/db/migrate/20101207014543_create_users.rb
tr8n-3.1.7 local/tr8n_server/db/migrate/20101207014543_create_users.rb
platform-3.1.3 test/dummy/db/migrate/20101207014543_create_users.rb
tr8n-3.1.6 local/tr8n_server/db/migrate/20101207014543_create_users.rb
tr8n-3.1.5 local/tr8n_server/db/migrate/20101207014543_create_users.rb
tr8n-3.1.4 local/tr8n_server/db/migrate/20101207014543_create_users.rb
tr8n-3.1.3 local/tr8n_server/db/migrate/20101207014543_create_users.rb
tr8n-3.1.2 local/tr8n_server/db/migrate/20101207014543_create_users.rb
platform-3.1.2 test/dummy/db/migrate/20101207014543_create_users.rb
platform-3.1.1 test/dummy/db/migrate/20101207014543_create_users.rb
tr8n-3.1.1 test/dummy/db/migrate/20101207014543_create_users.rb