20140121075418_create_user_credentials.rb 316B

12345678910111213
  1. class CreateUserCredentials < ActiveRecord::Migration
  2. def change
  3. create_table :user_credentials do |t|
  4. t.integer :user_id
  5. t.string :credential_name
  6. t.string :credential_value
  7. t.timestamps
  8. end
  9. add_index :user_credentials, [:user_id, :credential_name], :unique => true
  10. end
  11. end