Class: CreateUsers

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/generators/templates/db/migrate/create_users.rb

Instance Method Summary collapse

Instance Method Details

#changeObject



2
3
4
5
6
7
8
9
10
11
12
13
# File 'lib/generators/templates/db/migrate/create_users.rb', line 2

def change
  create_table :users do |t|
    t.string :email
    t.string :password_digest
    t.string :signup_token
    t.string :password_token
    t.boolean :active
    t.string  :username
    t.datetime :confirmed, :null => true
    t.timestamps
  end
end