Project

General

Profile

How load plugin's default data with redmine:load_default_data

Added by klaine tear almost 7 years ago

Hi.

How can I load plugin's default data with redmine:load_default_data
or like plugin:default_data.

Thank you for response.
Nest regards.


Replies (1)

RE: How load plugin's default data with redmine:load_default_data - Added by Ivan Cenov almost 7 years ago

I think that this is achieved by database migrations. Every plugin that works with its own data have database migrations.

Migration for all the plugins

bundle exec rake redmine:plugins:migrate RAILS_ENV=production
or for one plugin with name 'plugin_name'
bundle exec rake redmine:plugins:migrate NAME=plugin_name RAILS_ENV=production

    (1-1/1)