20161023200113_create_authorizations.rb 328 B

12345678910111213141516
  1. class CreateAuthorizations < ActiveRecord::Migration[5.0]
  2. def change
  3. create_table :authorizations do |t|
  4. t.string :provider
  5. t.string :uid
  6. t.integer :user_id
  7. t.string :token
  8. t.string :secret
  9. t.timestamps
  10. end
  11. add_index :authorizations, [:provider, :uid], unique: true
  12. end
  13. end