Directly inheriting from ActiveRecord::Migration is not supported within Rails 5.1
dylanninin opened this issue · comments
error raised when running migration within Rails 5.1:
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 CreateNotifications < ActiveRecord::Migration[4.2]
Just release 0.4.2