Guest User

Untitled

a guest
Apr 24th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. class CreateTransactions < ActiveRecord::Migration
  2. def self.up
  3. create_table :transactions do |t|
  4. t.datetime, :date
  5. t.string, :payee
  6. t.string, :memo
  7. t.integer, :amount
  8. t.integer, :account_id
  9. t.integer :payee_id
  10.  
  11. t.timestamps
  12. end
  13. end
  14.  
  15. def self.down
  16. drop_table :transactions
  17. end
  18. end
  19.  
  20. Error that I get:
  21. rake aborted!
  22. ./db/migrate//003_create_transactions.rb:4: syntax error, unexpected '\n', expecting tCOLON2 or '[' or '.'
  23. ./db/migrate//003_create_transactions.rb:5: syntax error, unexpected '\n', expecting tCOLON2 or '[' or '.'
  24. ./db/migrate//003_create_transactions.rb:6: syntax error, unexpected '\n', expecting tCOLON2 or '[' or '.'
  25. ./db/migrate//003_create_transactions.rb:7: syntax error, unexpected '\n', expecting tCOLON2 or '[' or '.'
  26. ./db/migrate//003_create_transactions.rb:8: syntax error, unexpected '\n', expecting tCOLON2 or '[' or '.'
Add Comment
Please, Sign In to add comment