forked from abdojulari/transcript-editor
-
Notifications
You must be signed in to change notification settings - Fork 4
Development notes
Sameera (Sam) edited this page Aug 6, 2018
·
2 revisions
Currently it's impossible to create the database from scratch due to some of the later migrations being required for pre and post-save hooks elsewhere in the code. We should resolve this before we allow other ppl to work with our fork. GR
↳ db/migrate/20180606054236_add_faqs.rb:64
(0.4ms) ROLLBACK
↳ /home/groberts/.rbenv/versions/2.5.0/bin/rake:23
(0.2ms) SELECT pg_advisory_unlock(4535691161282545635)
↳ /home/groberts/.rbenv/versions/2.5.0/bin/rake:23
Not notifying due to an invalid api_key
rake aborted!
StandardError: An error has occurred, this and all later migrations canceled:
unexpected return
/home/groberts/Projects/nsw-state-library-amplify/app/models/page.rb:9:in `block in <class:Page>'
/home/groberts/Projects/nsw-state-library-amplify/db/migrate/20180606054236_add_faqs.rb:64:in `up'
/home/groberts/.rbenv/versions/2.5.0/bin/bundle:23:in `load'
/home/groberts/.rbenv/versions/2.5.0/bin/bundle:23:in `<main>'
Caused by:
LocalJumpError: unexpected return
/home/groberts/Projects/nsw-state-library-amplify/app/models/page.rb:9:in `block in <class:Page>'
/home/groberts/Projects/nsw-state-library-amplify/db/migrate/20180606054236_add_faqs.rb:64:in `up'
/home/groberts/.rbenv/versions/2.5.0/bin/bundle:23:in `load'
/home/groberts/.rbenv/versions/2.5.0/bin/bundle:23:in `<main>'
Tasks: TOP => db:migrate
(See full trace by running task with --trace)
StandardError: An error has occurred, this and all later migrations canceled:
undefined method `slug' for #<Institution:0xb51d3548>
/home/groberts/Projects/nsw-state-library-amplify/db/migrate/20180625134109_add_nsw_library_id_to_existing_collections.rb:4:in `change'
/home/groberts/.rbenv/versions/2.5.0/bin/bundle:23:in `load'
/home/groberts/.rbenv/versions/2.5.0/bin/bundle:23:in `<main>'
Caused by:
NoMethodError: undefined method `slug' for #<Institution:0xb51d3548>
/home/groberts/Projects/nsw-state-library-amplify/db/migrate/20180625134109_add_nsw_library_id_to_existing_collections.rb:4:in `change'
/home/groberts/.rbenv/versions/2.5.0/bin/bundle:23:in `load'
/home/groberts/.rbenv/versions/2.5.0/bin/bundle:23:in `<main>'
Tasks: TOP => db:migrate
(See full trace by running task with --trace)