Skip to content

Instantly share code, notes, and snippets.

@monkbroc
Created February 18, 2015 16:23
Show Gist options
  • Save monkbroc/c95ef734184acdce546b to your computer and use it in GitHub Desktop.
Save monkbroc/c95ef734184acdce546b to your computer and use it in GitHub Desktop.
OmniAuth migration devise_create_users.rb
class DeviseCreateUsers < ActiveRecord::Migration
def change
create_table(:users) do |t|
## Your your user fields
t.string :email, default: ""
## OmniAuth-able
t.string :provider
t.string :uid
## Rememberable
t.datetime :remember_created_at
## Trackable
t.integer :sign_in_count, default: 0, null: false
t.datetime :current_sign_in_at
t.datetime :last_sign_in_at
t.string :current_sign_in_ip
t.string :last_sign_in_ip
t.timestamps
end
add_index :users, :email
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment