Class: CreateUser

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/migrations/20150221024005_create_user.rb

Instance Method Summary collapse

Instance Method Details

#changeObject



2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/migrations/20150221024005_create_user.rb', line 2

def change
  create_table :users do |t|
    t.string :first_name
    t.string :last_name
    t.string :user_name
    t.string :email
    t.string :password
    t.string :salt
    t.string :slug
    t.string :password_reset_token
    t.datetime :password_reset_timestamp
    t.string :auth_token
    t.timestamps
  end

  add_index :users, :slug
end