martin-denizet / wiking

Redmine 3.x compatible version of the WikiNG Redmine plugin by Andriy Lesyuk
GNU General Public License v2.0
5 stars 4 forks source link

Unable to install #7

Open bobzhu418 opened 3 years ago

bobzhu418 commented 3 years ago

When I tried to install the plugin, I got this:

rake aborted!
StandardError: An error has occurred, all later migrations canceled:

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

  class CreateMentions < ActiveRecord::Migration[4.2]
/home/bobzhu/redmine/plugins/wiking/db/migrate/001_create_mentions.rb:1:in `<top (required)>'
/home/bobzhu/redmine/lib/redmine/plugin.rb:542:in `up'
/home/bobzhu/redmine/lib/redmine/plugin.rb:574:in `migrate_plugin'
/home/bobzhu/redmine/lib/redmine/plugin.rb:515:in `migrate'
/home/bobzhu/redmine/lib/redmine/plugin.rb:526:in `migrate'
/home/bobzhu/redmine/lib/tasks/redmine.rake:135:in `block (3 levels) in <top (required)>'

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

  class CreateMentions < ActiveRecord::Migration[4.2]
/home/bobzhu/redmine/plugins/wiking/db/migrate/001_create_mentions.rb:1:in `<top (required)>'
/home/bobzhu/redmine/lib/redmine/plugin.rb:542:in `up'
/home/bobzhu/redmine/lib/redmine/plugin.rb:574:in `migrate_plugin'
/home/bobzhu/redmine/lib/redmine/plugin.rb:515:in `migrate'
/home/bobzhu/redmine/lib/redmine/plugin.rb:526:in `migrate'
/home/bobzhu/redmine/lib/tasks/redmine.rake:135:in `block (3 levels) in <top (required)>'
Tasks: TOP => redmine:plugins:migrate
(See full trace by running task with --trace)

By the way, my rails version is 5.2.6 (ruby 2.6.8).