SphereSoftware / easy_agile

Easy Agile is a Redmine plugin for agile project management.
MIT License
51 stars 15 forks source link

undefined method 'default_scope' for Story(Table doesn't exist):Class #26

Open mithryn opened 12 years ago

mithryn commented 12 years ago

I repeatedly get this error when I try to perform a rake db:migrate_plugin RAILS_ENV=production from a clean install of redmine and ubuntu 10.10

running ruby 1.8.7 on redmine 1.3.0

fbrier commented 12 years ago

I may be having the same issue. I posted to the Redmine Plugins forum:

http://www.redmine.org/boards/3/topics/28666

The table really does not exist. The db:migrate_plugin script does not appear to be creating any of the Easy Agile tables. My instance is running under Fedora 15.

Just for ease of access, I am including the content from the above link below. I would be happy just to know how to manually cause the below .rb files to create the necessary easy_agile tables.

---------From post on redmine forum-------- After installing the Easy Agile plugin on Redmine 1.3.0, I added its module to an existing project. When I select the new Easy Agile tab, I am sent to an Internal Error page. The log shows that the redmine.stories table does not exist.

ActiveRecord::StatementInvalid (Mysql::Error: Table 'redmine.stories' doesn't exist: SHOW FIELDS FROM `stories`):

Sure enough, the table does not exist in the redmine database (via phpMyAdmin and doing refreshes). But I ran the database migration plugin command from the redmine root directory:

rake db:migrate_plugins RAILS_ENV=production

The db:migrate_plugins command does not generate any messages in the production.log file. The directory /usr/local/www/redmine/vendor/plugins/easy_agile/db/migrate contains the files:

The database plugin backend is MySQL. No errors are showing in its logs. Please make any suggestions as to why the tables are not being created, or how to further debug this. Thank you.