zulip / zulip-redmine-plugin

Redmine plugin for Zulip notifications on issue tracker changes
Apache License 2.0
12 stars 17 forks source link

Error when installing into Docker #16

Closed var-log-skynet closed 5 years ago

var-log-skynet commented 5 years ago

I'm running a Docker containerized Redmine. First of all, the folder pulled from git has to be renamed to redmine_zulip or else I get a 404 error. After placing it into the right directory, I get the following error on startup:

StandardError: Directly inheriting from ActiveRecord::Migration is not supported. Please specify the Rails release the migration was written for:
class AddZulipAuthToProject < ActiveRecord::Migration[4.2]

What I'm I missing?

Redmine system info: Environment: Redmine version 4.0.3.stable Ruby version 2.6.3-p62 (2019-04-16) [x86_64-linux] Rails version 5.2.2.1 Environment production Database adapter Mysql2 Mailer queue ActiveJob::QueueAdapters::AsyncAdapter Mailer delivery smtp SCM: Subversion 1.9.5 Mercurial 4.0 Bazaar 2.8.0 Git 2.11.0 Filesystem
Redmine plugins: no plugin installed

var-log-skynet commented 5 years ago

Found a similar issue herer. I modified the first lines in the files in the db migration folder: class AddZulipAuthToProject < ActiveRecord::Migration[5.2] and class UpgradeZulipSettingsToProject < ActiveRecord::Migration[5.2]