Class: CreateTransactions
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateTransactions
- Defined in:
- lib/device_tracker/db/migrate/20150527162242_create_transactions.rb
Instance Method Summary collapse
Instance Method Details
#change ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 |
# File 'lib/device_tracker/db/migrate/20150527162242_create_transactions.rb', line 2 def change create_table :transactions do |t| t.string :transaction_type, index: true t.belongs_to :user t.belongs_to :device t.text :description t.datetime :created_at end end |