Forum: Typo Migration 38

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
David R. (Guest)
on 2006-03-18 06:49
(Received via mailing list)
Anyone managed to get migration 38 working yet (on PostGres)? From trunk
921.Here's my rake trace.
** Invoke migrate (first_time)** Invoke environment (first_time)**
Execute environmentrake aborted!superclass must be a Class (Module
given)/var/www/html/channel200/app/models/configuration.rb:1/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/dependencies.rb:207:in`load'/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/dependencies.rb:207:in`load'/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/dependencies.rb:39:in`require_or_load'/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/dependencies.rb:22:in`depend_on'/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/dependencies.rb:178:in`require_dependency'/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/dependencies.rb:178:in`require_dependency'/var/www/html/channel200/config/environment.rb:96/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in
`require__'/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in
`require'/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/dependencies.rb:214:in`require'/usr/local/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/tasks/misc.rake:9/usr/local/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/tasks/misc.rake:8:in
`call'/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake.rb:232:in
`execute'/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake.rb:232:in
`each'/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake.rb:232:in
`execute'/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake.rb:202:in
`invoke'/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake.rb:195:in
`synchronize'/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake.rb:195:in
`invoke'/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake.rb:209:in`invoke_prerequisites'/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake.rb:208:in
`each'/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake.rb:844:in
`send'/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake.rb:844:in
`each'/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake.rb:208:in`invoke_prerequisites'/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake.rb:201:in
`invoke'/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake.rb:195:in
`synchronize'/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake.rb:195:in
`invoke'/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake.rb:1719:in
`run'/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake.rb:1719:in
`each'/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake.rb:1719:in
`run'/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.0/bin/rake:7/usr/local/bin/rake:18:in
`load'/usr/local/bin/rake:18
david richardsontypo migrations â?? so much pain.
cedric (Guest)
on 2006-03-18 09:05
(Received via mailing list)
How can I run migration 38 manually? I have problems since I update to
revision 915...

typo just says "typo_development.blogs" doesn't exist...

Thanks

Le Samedi 18 Mars 2006 05:46, David R. a écrit :
Kevin B. (Guest)
on 2006-03-18 13:24
(Received via mailing list)
Ok, revision 922 fixes this. You can now upgrade via the admin
interface again.

For future reference, you can upgrade from the command-line by
running `rake migrate RAILS_ENV=production` from the root folder of
your typo installation (this upgrades the production database, use
RAILS_ENV=development to upgrade development if you have it).
Kevin K. (Guest)
on 2006-03-18 16:31
(Received via mailing list)
the upgrade kinda worked, I now have the blog table, but get this error
Processing GeneralController#index (for 69.140.109.194 at
2006-03-1809:23:53) [GET]  Parameters: {"action"=>"index",
"controller"=>"admin/general"}

ActiveRecord::StatementInvalid (Mysql::Error: Table
'typo.settings'doesn't exist: SELECT * FROM settings ):
/usr/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/connection_adapters/abstract_adapter.rb:88:in`log'
/usr/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/connection_adapters/mysql_adapter.rb:180:in`execute'
/usr/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/connection_adapters/mysql_adapter.rb:322:in`select'
/usr/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/connection_adapters/mysql_adapter.rb:171:in`select_all'
/usr/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/base.rb:431:in`find_by_sql'
/usr/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/base.rb:395:in`find'
/app/models/config_manager.rb:13:in `reload'
/app/controllers/application.rb:53:in `reload_settings'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/filters.rb:354:in`call_filte!
rs'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/filters.rb:350:in`call_filters'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/filters.rb:339:in`before_action'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/filters.rb:331: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/ru!
by/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/1.8/fcgi.rb:600:in `each_cgi'
/usr/lib/ruby/1.8/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, Kevin B. <removed_email_address@domain.invalid> wrote:> Ok, revision 
922 fixes
this. You can now upgrade via the admin> interface again.>> For future
reference, you can upgrade from the command-line by> running `rake
migrate RAILS_ENV=production` from the root folder of> your typo
installation (this upgrades the production database, use>
RAILS_ENV=development to upgrade development if you have it).>> On Mar
17, 2006, at 11:02 PM, cedric wrote:>> > How can I run migration 38
manually? I have problems since I update to> > revision 915...> >> >
typo just says "typo_development.blogs" doesn't exist...>> --> Kevin
Ballard> removed_email_address@domain.invalid> http://kevin.sb.org>
http://www.tildesoft.com>>>>>
_______________________________________________> Typo-list mailing list>
removed_email_address@domain.invalid>
http://rubyforge.org/mailman/listinfo/typo-list>>>

--Cheers,Kevin K.http://blog.kubasik.net/
David R. (Guest)
on 2006-03-18 17:57
(Received via mailing list)
didn't work at all here.
d.r.
Piers C. (Guest)
on 2006-03-18 19:20
(Received via mailing list)
"Kevin K." <removed_email_address@domain.invalid> writes:

> the upgrade kinda worked, I now have the blog table, but get this error
> Processing GeneralController#index (for 69.140.109.194 at
> 2006-03-1809:23:53) [GET]  Parameters: {"action"=>"index",
> "controller"=>"admin/general"}

Have you restarted your fcgi processes? Looks like you've got old code
trying to work with the new schema.
David R. (Guest)
on 2006-03-18 20:21
(Received via mailing list)
Migration still failing with v 924
d.r.
Piers C. (Guest)
on 2006-03-18 20:46
(Received via mailing list)
"David R." <removed_email_address@domain.invalid> writes:

> Migration still failing with v 924

Can I have another copy of the rake trace? Preferably with linebreaks
this time.
David R. (Guest)
on 2006-03-18 23:40
(Received via mailing list)
Working now. Be careful that your update procedure removes
deprecatedfile, rather than just updating existing files.
d.r.--www.channel200.net
This topic is locked and can not be replied to.