Class: CreateUserCredentials
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateUserCredentials
- Defined in:
- lib/trackington/db/migrate/20160207203302_create_user_credentials.rb
Instance Method Summary collapse
Instance Method Details
#change ⇒ Object
2 3 4 5 6 7 8 9 10 |
# File 'lib/trackington/db/migrate/20160207203302_create_user_credentials.rb', line 2 def change create_table :credentials do |t| t.string :password t.string :salt t.string :session_key t.belongs_to :user, index: true end end |