Skip to content

Notification #1

@teaglebuilt

Description

@teaglebuilt

Im not sure if this will be qualified as an issue, due to my lack of understanding with rails. Although, I thought I would still document this just incase.

After creating a passing test. I got an error after running "rake". Error listed below.


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

Solution: The link below is how i found the solution. In spec_helper.rb, i put [5.0] after migration,
like...


class CreateSchema < ActiveRecord::Migration[5.0]

instead of...


class CreateSchema < ActiveRecord::Migration

Source - RolifyCommunity/rolify#444

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