2012-02-25 16:30:42 +00:00
|
|
|
class CreateUsers < ActiveRecord::Migration
|
|
|
|
def change
|
|
|
|
create_table :users do |t|
|
2012-02-26 16:55:19 +00:00
|
|
|
t.string :provider, :null => false
|
|
|
|
t.string :uid, :null => false
|
2012-02-25 16:30:42 +00:00
|
|
|
t.string :email
|
|
|
|
t.string :name
|
2012-02-26 16:55:19 +00:00
|
|
|
t.string :avatar_url
|
2012-02-25 16:30:42 +00:00
|
|
|
|
|
|
|
t.timestamps
|
|
|
|
end
|
|
|
|
|
|
|
|
add_index :users, [ :provider, :uid ], :unique => true
|
|
|
|
end
|
|
|
|
end
|