Closed urmel1960 closed 14 years ago
i just pushed a fix for this, please pull again and try it!
Tried it - now I have another error
Migrating redmine_todos_plugin... == AddTodoableFields: migrating ============================================== -- add_column(:todos, :todoable_id, :integer) -> 0.0725s -- add_column(:todos, :todoable_type, :string) -> 0.0088s == AddTodoableFields: migrated (0.0821s) =====================================
== RemoveOldTodoAssociations: migrating ====================================== rake aborted! An error has occurred, all later migrations canceled:
Validation failed: translation missing: en, field_text is too short (minimum is 1 characters)
Right, what that looks like is that you have an existing Todo that has a blank text field. Somewhere along the line, we added a validation to prevent blank text fields being entered. So, you can either delete all your todos with blank text, then try again, or set their text to something.
to set blank todos to something:
ruby script/console production
Todo.find_all_by_text('').each{|t| t.update_attributes!(:text => 'I AM BLANK') }
Thanks, that worked
Hello I just updated your plugin to the most recent version from git when running the rake db:migrate_plugins RAILS_ENV="production" I get the follwing error:
* Invoke db:migrate_plugins (first_time) * Invoke environment (first_time) \ Execute environment rake aborted! no such file to load -- application /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
gem_original_require' /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
require' /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:158:inrequire' /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:265:in
require_or_load_without_engine_additions' /srv/redmine/vendor/plugins/engines/lib/engines/rails_extensions/dependencies.rb:132:inrequire_or_load' /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:224:in
depend_on' /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:136:inrequire_dependency' /srv/redmine/vendor/plugins/redmine_todos_plugin/init.rb:12:in
evaluate_init_rb' /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/callbacks.rb:182:incall' /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/callbacks.rb:182:in
evaluate_method' /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/callbacks.rb:166:incall' /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/callbacks.rb:90:in
run' /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/callbacks.rb:90:ineach' /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/callbacks.rb:90:in
send' /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/callbacks.rb:90:inrun' /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/callbacks.rb:276:in
run_callbacks' /usr/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/dispatcher.rb:51:insend' /usr/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/dispatcher.rb:51:in
run_prepare_callbacks' /usr/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:631:inprepare_dispatcher' /usr/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:185:in
process' /usr/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:113:insend' /usr/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:113:in
run' /srv/redmine/config/environment.rb:20 /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:ingem_original_require' /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
require' /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:156:inrequire' /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:521:in
new_constants_in' /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:156:inrequire' /usr/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/tasks/misc.rake:4 /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in
call' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:inexecute' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in
each' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:inexecute' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:in
invoke_with_call_chain' /usr/lib/ruby/1.8/monitor.rb:242:insynchronize' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in
invoke_with_call_chain' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:ininvoke_prerequisites' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in
each' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:ininvoke_prerequisites' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:596:in
invoke_with_call_chain' /usr/lib/ruby/1.8/monitor.rb:242:insynchronize' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in
invoke_with_call_chain' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:ininvoke' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in
invoke_task' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:intop_level' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in
each' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:intop_level' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in
standard_exception_handling' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:intop_level' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in
run' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:instandard_exception_handling' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in
run' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31 /usr/bin/rake:19:in `load' /usr/bin/rake:19