mirror of
https://github.com/plashchynski/crono.git
synced 2026-01-14 14:23:27 +01:00
Error when migrating crono migration #62
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ferdi2005 on GitHub (Aug 11, 2019).
rails 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:
class CreateCronoJobs < ActiveRecord::Migration[4.2]
@alliedarmour commented on GitHub (Oct 20, 2019):
Just replace the [4.2] with the version you are using, in my case it's [6.0]
@ClikeX commented on GitHub (Aug 13, 2020):
The issue here wasn't the [4.2]. It's the fact that Crono's generated migration doesn't have the version tag in it at all.
My migration came like this
Naturally, this is easily fixed by hand. But I think the generator should already be doing this. Since this structure has been standard for a while now.
@plashchynski commented on GitHub (May 30, 2022):
Fixed in the new version of the gem (2.0.0)