Skip to content

Fix: problem (error) with rails db:migrate script#12

Open
linuxonrails wants to merge 1 commit intoopensouthcode:masterfrom
linuxonrails:fix_error_with_rails_db_migrate
Open

Fix: problem (error) with rails db:migrate script#12
linuxonrails wants to merge 1 commit intoopensouthcode:masterfrom
linuxonrails:fix_error_with_rails_db_migrate

Conversation

@linuxonrails
Copy link
Contributor

Checklist

  • I have read the Contribution & Best practices Guide.
  • My branch is up-to-date with the upstream master branch.
  • The tests pass locally with my changes.
  • I have added tests that prove my fix is effective or that my feature works(if appropriate).
  • I have added necessary documentation (if appropriate).

Short description of what this resolves/which issues does this fix?:

When I execute rails db:migrate I receive the following error:

rails aborted!
StandardError: An error has occurred, this and all later migrations canceled:

undefined method `add_money' for #<SplitTicketPriceInPriceAndCurrency:0x00007fb74e642640 @name="SplitTicketPriceInPriceAndCurrency", @version=20140821103643, @connection=nil>
Did you mean?  add_monetize
/home/davidm/src/linuxonrails/moraga/db/migrate/20140821103643_split_ticket_price_in_price_and_currency.rb:9:in `change'

Caused by:
NoMethodError: undefined method `add_money' for #<SplitTicketPriceInPriceAndCurrency:0x00007fb74e642640 @name="SplitTicketPriceInPriceAndCurrency", @version=20140821103643, @connection=nil>
Did you mean?  add_monetize
/home/davidm/src/linuxonrails/moraga/db/migrate/20140821103643_split_ticket_price_in_price_and_currency.rb:9:in `change'
Tasks: TOP => db:migrate
(See full trace by running task with --trace)

Changes proposed in this pull request:

  • Apply the rails recommendation (rename add_money with add_monetize)
  • The db/schema.rb was changed after apply the migrations!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant