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

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

Open
mithryn opened this issue Jan 17, 2012 · 1 comment
Open

Comments

@mithryn
Copy link

mithryn commented Jan 17, 2012

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
Copy link

fbrier commented Jan 24, 2012

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:

  • 20090303213012_create_iterations.rb
  • 20090304193819_create_acceptance_criteria.rb
  • 20090325133236_create_story_team_members.rb
  • 20090304004418_create_stories.rb
  • 20090310175005_create_burndown_data_points.rb
  • 20090327110522_create_story_actions.rb

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.

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

2 participants