Skip to content

Error when running rake db:migrate #3

@brettallred

Description

@brettallred
bundle exec rake db:migrate
rake aborted!
StandardError: An error has occurred, this and all later migrations canceled:

Directly inheriting from ActiveRecord::Migration is not supported. Please specify the Rails release the migration was written for:

Fix is easy by manually modifying the generated migration from
class CreateElasticProductState < ActiveRecord::Migration
to
class CreateElasticProductState < ActiveRecord::Migration[4.2]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions