DEBUG ↳ /Users/darren/.rbenv/versions/2.6.5/bin/rake:23
INFO Migrating to CreateItems (20080806070738)
DEBUG (0.3ms) SELECT RELEASE_LOCK('5284399111433957445')
DEBUG ↳ /Users/darren/.rbenv/versions/2.6.5/bin/rake:23
rake aborted!
StandardError: An error has occurred, all later migrations canceled:
Directly inheriting from ActiveRecord::Migration is not supported. Please specify the Rails release the migration was written for:
class CreateItems < ActiveRecord::Migration[4.2]
/Users/darren/data/projects/sharetribe/db/migrate/20080806070738_create_items.rb:1:in `<main>'
/Users/darren/.rbenv/versions/2.6.5/bin/bundle:23:in `load'
/Users/darren/.rbenv/versions/2.6.5/bin/bundle:23:in `<main>'
Caused by:
StandardError: Directly inheriting from ActiveRecord::Migration is not supported. Please specify the Rails release the migration was written for:
class CreateItems < ActiveRecord::Migration[4.2]
/Users/darren/data/projects/sharetribe/db/migrate/20080806070738_create_items.rb:1:in `<main>'
/Users/darren/.rbenv/versions/2.6.5/bin/bundle:23:in `load'
/Users/darren/.rbenv/versions/2.6.5/bin/bundle:23:in `<main>'
Tasks: TOP => db:migrate
(See full trace by running task with --trace)
In case you are installing new Sharetribe then you wouldn’t have to run migrations db:structure:load will create all the database schema, Otherwise ensure the migration release version is the same as rails version.
For example - if you are running rails 5 then change it to like this -
before - class CreateItems < ActiveRecord::Migration[4.2]
After class CreateItems < ActiveRecord::Migration[5.0]
I would be happy to discuss with for any further help on this
Aman kr
email/skype - mailtoamanam@gmail.com