Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrations not working #34

Open
RealKelsar opened this issue Feb 20, 2021 · 0 comments
Open

Migrations not working #34

RealKelsar opened this issue Feb 20, 2021 · 0 comments

Comments

@RealKelsar
Copy link

Hi,

I tried to install the plugin today and got problems with the migration step. The Error is repeated multiple times for all the migrations.

rake redmine:plugins:migrate RAILS_ENV=production
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 AddZulipAuthToProject < ActiveRecord::Migration[4.2]
/var/lib/gems/2.5.0/gems/activerecord-5.2.3/lib/active_record/migration.rb:528:in `inherited'
/home/redmine/redmine/redmine-4.0.4/plugins/redmine_zulip/db/migrate/20130920172651_add_zulip_auth_to_project.rb:1:in `<top (required)>'
/var/lib/gems/2.5.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in `require'
/var/lib/gems/2.5.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in `block in require'
/var/lib/gems/2.5.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:257:in `load_dependency'
/var/lib/gems/2.5.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in `require'
/var/lib/gems/2.5.0/gems/activerecord-5.2.3/lib/active_record/migration.rb:986:in `load_migration'
/var/lib/gems/2.5.0/gems/activerecord-5.2.3/lib/active_record/migration.rb:982:in `migration'
/var/lib/gems/2.5.0/gems/activerecord-5.2.3/lib/active_record/migration.rb:977:in `disable_ddl_transaction'
/var/lib/gems/2.5.0/gems/activerecord-5.2.3/lib/active_record/migration.rb:1350:in `use_transaction?'
/var/lib/gems/2.5.0/gems/activerecord-5.2.3/lib/active_record/migration.rb:1342:in `ddl_transaction'
/var/lib/gems/2.5.0/gems/activerecord-5.2.3/lib/active_record/migration.rb:1291:in `execute_migration_in_transaction'
/var/lib/gems/2.5.0/gems/activerecord-5.2.3/lib/active_record/migration.rb:1263:in `block in migrate_without_lock'
/var/lib/gems/2.5.0/gems/activerecord-5.2.3/lib/active_record/migration.rb:1262:in `each'
/var/lib/gems/2.5.0/gems/activerecord-5.2.3/lib/active_record/migration.rb:1262:in `migrate_without_lock'
/var/lib/gems/2.5.0/gems/activerecord-5.2.3/lib/active_record/migration.rb:1210:in `block in migrate'
/var/lib/gems/2.5.0/gems/activerecord-5.2.3/lib/active_record/migration.rb:1363:in `with_advisory_lock'
/var/lib/gems/2.5.0/gems/activerecord-5.2.3/lib/active_record/migration.rb:1210:in `migrate'
/home/redmine/redmine/redmine-4.0.4/lib/redmine/plugin.rb:504:in `up'
/var/lib/gems/2.5.0/gems/activerecord-5.2.3/lib/active_record/migration.rb:1011:in `migrate'
/home/redmine/redmine/redmine-4.0.4/lib/redmine/plugin.rb:536:in `migrate_plugin'
/home/redmine/redmine/redmine-4.0.4/lib/redmine/plugin.rb:477:in `migrate'
/home/redmine/redmine/redmine-4.0.4/lib/redmine/plugin.rb:491:in `block in migrate'
/home/redmine/redmine/redmine-4.0.4/lib/redmine/plugin.rb:490:in `each'
/home/redmine/redmine/redmine-4.0.4/lib/redmine/plugin.rb:490:in `migrate'
/home/redmine/redmine/redmine-4.0.4/lib/tasks/redmine.rake:135:in `block (3 levels) in <top (required)>'
/var/lib/gems/2.5.0/gems/rake-12.3.3/exe/rake:27:in `<top (required)>'

I just added the Version to it, but that lead to a broken Redmine.

Couldn't find ApplicationHelper, expected it to be defined in helpers/application_helper.rb
Rails.root: /home/redmine/redmine/redmine-4.0.4

Application Trace | Framework Trace | Full Trace
app/controllers/application_controller.rb:23:in `<top (required)>'
app/controllers/issues_controller.rb:18:in `<top (required)>'

Help would be appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant