Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class CreateTransactions < ActiveRecord::Migration
- def self.up
- create_table :transactions do |t|
- t.datetime, :date
- t.string, :payee
- t.string, :memo
- t.integer, :amount
- t.integer, :account_id
- t.integer :payee_id
- t.timestamps
- end
- end
- def self.down
- drop_table :transactions
- end
- end
- Error that I get:
- rake aborted!
- ./db/migrate//003_create_transactions.rb:4: syntax error, unexpected '\n', expecting tCOLON2 or '[' or '.'
- ./db/migrate//003_create_transactions.rb:5: syntax error, unexpected '\n', expecting tCOLON2 or '[' or '.'
- ./db/migrate//003_create_transactions.rb:6: syntax error, unexpected '\n', expecting tCOLON2 or '[' or '.'
- ./db/migrate//003_create_transactions.rb:7: syntax error, unexpected '\n', expecting tCOLON2 or '[' or '.'
- ./db/migrate//003_create_transactions.rb:8: syntax error, unexpected '\n', expecting tCOLON2 or '[' or '.'
Add Comment
Please, Sign In to add comment