A little clarification.  I restarted the server and get "Application error (Rails)" with "Multiple migrations have the version number 1" in the production.log...


Processing GeneralController#index (for 192.168.5.104 at 2006-03-18 12:22:09) [G
ET]
  Parameters: {"action"=>"index", "controller"=>"admin/general"}Redirected to http://www.shokk.com/blog/admin/general/update_database
Completed in 0.00158 (632 reqs/sec) | DB: 0.00007 (4%) | 302 Found [http://www.shokk.com/blog/admin/]

Processing GeneralController#update_database (for 192.168.5.104 at 2006-03-18 12
:22:09) [GET]  Parameters: {"action"=>"update_database", "controller"=>"admin/general"}
Rendering  within layouts/administrationRendering admin/general/update_database
Completed in 0.02420 (41 reqs/sec) | Rendering: 0.01875 (77%) | DB: 0.00021 (0%) | 200 OK [http://www.shokk.com/blog/admin/general/update_database]

Processing GeneralController#migrate (for 192.168.5.104 at 2006-03-18 12:22:11)
[POST]  Parameters: {"action"=>"migrate", "controller"=>"admin/general"}


ActiveRecord::DuplicateMigrationVersionError (Multiple migrations have the version number 1):
    /usr/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/migration.
rb:247:in `assert_unique_migration_version'
    /usr/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/migration.
rb:238:in `migration_classes'
    /usr/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/connection
_adapters/mysql_adapter.rb:185:in `inject'
    /usr/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/migration.
rb:235:in `migration_classes'
    /usr/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/migration.
rb:223:in `migrate'
    /usr/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/migration.
rb:190:in `up'
    /usr/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/migration.
rb:181:in `migrate'
    /lib/migrator.rb:26:in `migrate'
    /app/controllers/admin/general_controller.rb:17:in `migrate'
    /usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/base.rb:
853:in `perform_action_without_filters'
    /usr/lib/ruby/gems/1.8/gems/actionpack- 1.11.2/lib/action_controller/filters.
rb:332:in `perform_action_without_benchmark'
    /usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/benchmar
king.rb:69:in `perform_action_without_rescue'
    /usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
    /usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/benchmar
king.rb:69:in `perform_action_without_rescue'
    /usr/lib/ruby/gems/1.8/gems/actionpack- 1.11.2/lib/action_controller/rescue.r
b:82:in `perform_action'
    /usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/base.rb:
369:in `process_without_session_management_support'
    /usr/lib/ruby/gems/1.8/gems/actionpack- 1.11.2/lib/action_controller/session_
management.rb:116:in `process'
    /usr/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/dispatcher.rb:38:in `dispatch'
    /usr/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/fcgi_handler.rb:141:in `process_
request'
    /usr/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/fcgi_handler.rb:53:in `process!'
    /usr/lib/ruby/gems/1.8/gems/fcgi-0.8.6.1/./fcgi.rb:600:in `each_cgi'
    /usr/lib/ruby/gems/1.8/gems/fcgi-0.8.6.1/./fcgi.rb:597:in `each_cgi'
    /usr/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/fcgi_handler.rb:52:in `process!'
    /usr/lib/ruby/gems/1.8/gems/rails- 1.0.0/lib/fcgi_handler.rb:22:in `process!'
    /public/dispatch.fcgi:24




On 3/18/06, Ernie Oporto < [EMAIL PROTECTED]> wrote:

I get the error below when moving from database version 35 to 40 for trunk version 923.
This worked fine when I tested it by just using it as a standalone, but not when I tried migrating my existing site.
What's missing?  The site itself is not operating properly while this is not migrated.


Processing GeneralController#migrate (for 192.168.5.104 at 2006-03-18 12:12:56) [GET]
  Parameters: {"action"=>"migrate", "controller"=>"admin/general"}
Rendering  within layouts/administration

ActionController::MissingTemplate (Missing template /web/blog/app/views/admin/general/migrate.rhtml):
    /usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/base.rb:930:in `assert_existance_of_template_file'
    /usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/base.rb:653:in `render_file'
    /usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/base.rb:595:in `render_with_no_layout'
    /usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/layout.rb:220:in `render_without_benchmark'
    /usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/benchmarking.rb:53:in `render'
    /usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
    /usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/benchmarking.rb:53:in `render'
    /usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/base.rb:854:in `perform_action_without_filters'
    /usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/filters.rb:332:in `perform_action_without_benchmark'
    /usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/benchmarking.rb:69:in `perform_action_without_rescue'
    /usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
    /usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/benchmarking.rb:69:in `perform_action_without_rescue'
    /usr/lib/ruby/gems/1.8/gems/actionpack- 1.11.2/lib/action_controller/rescue.rb:82:in `perform_action'
    /usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/base.rb:369:in `process_without_session_management_support'
    /usr/lib/ruby/gems/1.8/gems/actionpack- 1.11.2/lib/action_controller/session_management.rb:116:in `process'
    /usr/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/dispatcher.rb:38:in `dispatch'
    /usr/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/fcgi_handler.rb:141:in `process_request'
    /usr/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/fcgi_handler.rb:53:in `process!'
    /usr/lib/ruby/gems/1.8/gems/fcgi- 0.8.6.1/./fcgi.rb:600:in `each_cgi'
    /usr/lib/ruby/gems/1.8/gems/fcgi- 0.8.6.1/./fcgi.rb:597:in `each_cgi'
    /usr/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/fcgi_handler.rb:52:in `process!'
    /usr/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/fcgi_handler.rb:22:in `process!'
    /public/dispatch.fcgi:24



--
Ernie
http://www.shokk.com/blog/
_______________________________________________
Typo-list mailing list
Typo-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/typo-list

Reply via email to