【发布时间】:2020-10-03 19:30:02
【问题描述】:
在尝试执行命令 $rails db:migrate 时,我收到以下错误:
$ rails db:migrate RAILS_ENV=test
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:
如何指定迁移所针对的版本?这是在什么文件里?谢谢!
【问题讨论】: