Skip to content

Commit

Permalink
resolves #56
Browse files Browse the repository at this point in the history
  • Loading branch information
lynndylanhurley committed Oct 29, 2014
1 parent adf5820 commit f1da468
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
class DeviseTokenAuthCreate<%= user_class.pluralize %> < ActiveRecord::Migration
def change
create_table(:<%= user_class.pluralize.underscore %>) do |t|
## Required
t.string :provider, :null => false
t.string :uid, :null => false, :default => ""

## Database authenticatable
t.string :email
t.string :encrypted_password, :null => false, :default => ""

## Recoverable
Expand Down Expand Up @@ -34,10 +37,7 @@ class DeviseTokenAuthCreate<%= user_class.pluralize %> < ActiveRecord::Migration
t.string :name
t.string :nickname
t.string :image

## unique oauth id
t.string :provider
t.string :uid, :null => false, :default => ""
t.string :email

## Tokens
t.text :tokens
Expand Down

0 comments on commit f1da468

Please sign in to comment.