Defect #11024

redmine_plugin_model generator does not create the migration

Added by Giovanni D over 5 years ago. Updated over 5 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Plugin API
Target version:2.0.1
Resolution:Fixed Affected version:2.0.0

Description

On Redmine 2.0.0, by following the tutorial on creating a new plugin (http://www.redmine.org/projects/redmine/wiki/Plugin_Tutorial), the following command:

ruby script/generate redmine_plugin_model polls poll question:string yes:integer no:integer

which actually I launched as:

./script/rails generate redmine_plugin_model polls poll question:string yes:integer no:integer

does not generate the migration files, but it generates only these two files:

create  plugins/polls/app/models/poll.rb
create  plugins/polls/test/unit/poll_test.rb


Related issues

Related to Redmine - Defect #10928: Documentation about generating a plugin is not up-to-date Closed

Associated revisions

Revision 9718
Added by Jean-Philippe Lang over 5 years ago

Fixed that plugin model generator does not generate the migration (#11024).

History

#1 Updated by Jean-Philippe Lang over 5 years ago

  • Category set to Plugin API
  • Status changed from New to Resolved
  • Target version set to 2.0.1
  • Affected version (unused) set to 2.0.0
  • Resolution set to Fixed
  • Affected version set to 2.0.0

Fixed in r9718.

#2 Updated by Jean-Philippe Lang over 5 years ago

  • Subject changed from Redmine 2.0.0 redmine_plugin_model does not create the migration to redmine_plugin_model generator does not create the migration

#3 Updated by Jean-Philippe Lang over 5 years ago

  • Status changed from Resolved to Closed

Merged.

Also available in: Atom PDF