プロジェクト

全般

プロフィール

Vote #79633

未完了

Plugin migrations. Load order in plugin.

Admin Redmine さんが約4年前に追加. 約4年前に更新.

ステータス:
New
優先度:
通常
担当者:
-
カテゴリ:
Plugin API_20
対象バージョン:
-
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
20
version_id:
0
issue_org_id:
29923
author_id:
369932
assigned_to_id:
0
comments:
0
status_id:
1
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[New]

説明

I am building a simple plugin which allows setting a global wiki on the homepage and also it allows adding custom links in the top menu.
I have 2 problems with it because I use its own model into init.rb file to load data if there is any in its table.
As you can see, I am loading data outside register block, because if I try to do so, I am getting the following error:
uninitialized constant CustomLink (NameError)
If I am trying to load data after the block, the problem is solved. Tho, I can't run plugin migrations as the command that tries to run the migration seem to load init.rb file and says table do not exist.
Any solution? Thanks. This is the plugin:
https://github.com/AlexandruCD/global_wiki/blob/master/init.rb

Admin Redmine さんが約4年前に更新

  • カテゴリPlugin API_20 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0