Forum: Typo r822 to r983 migration failing

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.
D6f24842b973de6cb75203c4c57dfbcb?d=identicon&s=25 Gary Shewan (Guest)
on 2006-04-01 18:18
(Received via mailing list)
Okay the last version of trunk I was sitting on was r822.  I thought
I'd embrace 1.1 fully and push up to r983.  Running rake migrate
throws out these errors:

** Invoke migrate (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute migrate
Adding display name to tags
rake aborted!
uninitialized constant ApplicationController
/usr/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_srb:200:in
`const_missing'
/home/*****/gpshewan.com/app/controllers/textfi/usr/local/lib/
site_ruby/1.8/rubygems/custom_require.rb:18:i/usr/local/lib/site_ruby/
1.8/rubygems/custom_require.rb:18:i/usr/lib/ruby/gems/1.8/gems/
activesupport-1.2.5/lib/active_srb:214:in `require'
/usr/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_srb:39:in
`require_or_load'
/usr/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_srb:22:in
`depend_on'
/usr/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_srb:178:in
`require_dependency'
/usr/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_srb:178:in
`require_dependency'
/home/.farpoint/gpshewan/gpshewan.com/app/models/text_filter/usr/
local/lib/site_ruby/1.8/rubygems/custom_require.rb:18:i/usr/local/lib/
site_ruby/1.8/rubygems/custom_require.rb:18:i/usr/lib/ruby/gems/1.8/
gems/activesupport-1.2.5/lib/active_srb:214:in `require'
/usr/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_srb:39:in
`require_or_load'
/usr/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_srb:22:in
`depend_on'
/usr/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_srb:30:in
`associate_with'
/usr/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_srb:179:in
`require_association'
/usr/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_srb:179:in
`require_association'
/usr/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_rb:780:in
`require_association_class'
/usr/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_rb:524:in
`belongs_to_without_reflection'
(eval):5:in `belongs_to'
/home/.farpoint/gpshewan/gpshewan.com/app/models/content.rb:/usr/
local/lib/site_ruby/1.8/rubygems/custom_require.rb:18:i/usr/local/lib/
site_ruby/1.8/rubygems/custom_require.rb:18:i/usr/lib/ruby/gems/1.8/
gems/activesupport-1.2.5/lib/active_srb:214:in `require'
/usr/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_srb:39:in
`require_or_load'
/usr/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_srb:22:in
`depend_on'
/usr/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_srb:178:in
`require_dependency'
/usr/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_srb:178:in
`require_dependency'
/usr/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_srb:194:in
`const_missing'
/home/.farpoint/gpshewan/gpshewan.com/app/models/article.rb:/usr/
local/lib/site_ruby/1.8/rubygems/custom_require.rb:18:i/usr/local/lib/
site_ruby/1.8/rubygems/custom_require.rb:18:i/usr/lib/ruby/gems/1.8/
gems/activesupport-1.2.5/lib/active_srb:214:in `require'
/usr/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_srb:39:in
`require_or_load'
/usr/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_srb:22:in
`depend_on'
/usr/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_srb:30:in
`associate_with'
/usr/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_srb:179:in
`require_association'
/usr/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_srb:179:in
`require_association'
/usr/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_rb:780:in
`require_association_class'
/usr/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_rb:650:in
`has_and_belongs_to_many_without_reflection'
(eval):5:in `has_and_belongs_to_many'
/home/.farpoint/gpshewan/gpshewan.com/app/models/tag.rb:2
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:18:i/usr/
local/lib/site_ruby/1.8/rubygems/custom_require.rb:18:i/usr/lib/ruby/
gems/1.8/gems/activesupport-1.2.5/lib/active_srb:214:in `require'
/usr/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_srb:39:in
`require_or_load'
/usr/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_srb:22:in
`depend_on'
/usr/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_srb:178:in
`require_dependency'
/usr/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_srb:178:in
`require_dependency'
/usr/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_srb:194:in
`const_missing'
./db/migrate//36_add_tag_display_name.rb:4:in `up'
/usr/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_r28:in `send'
/usr/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_r28:in
`migrate'
/usr/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_r23:in `each'
/usr/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_r23:in
`migrate'
/usr/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_r90:in `up'
/usr/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_r81:in
`migrate'
/usr/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/tasks/databases./usr/lib/
ruby/gems/1.8/gems/rails-1.0.0/lib/tasks/databases./usr/lib/ruby/gems/
1.8/gems/rake-0.7.0/lib/rake.rb:232:in `e/usr/lib/ruby/gems/1.8/gems/
rake-0.7.0/lib/rake.rb:232:in `e/usr/lib/ruby/gems/1.8/gems/
rake-0.7.0/lib/rake.rb:232:in `e/usr/lib/ruby/gems/1.8/gems/
rake-0.7.0/lib/rake.rb:202:in `i/usr/lib/ruby/gems/1.8/gems/
rake-0.7.0/lib/rake.rb:195:in `s/usr/lib/ruby/gems/1.8/gems/
rake-0.7.0/lib/rake.rb:195:in `i/usr/lib/ruby/gems/1.8/gems/
rake-0.7.0/lib/rake.rb:1719:in `/usr/lib/ruby/gems/1.8/gems/
rake-0.7.0/lib/rake.rb:1719:in `/usr/lib/ruby/gems/1.8/gems/
rake-0.7.0/lib/rake.rb:1719:in `/usr/lib/ruby/gems/1.8/gems/
rake-0.7.0/bin/rake:7
/usr/bin/rake:18:in `load'
/usr/bin/rake:18

I'm rolling back to r822 now.  But is this something that needs a
ticket?  Or something simpler?

Cheers

Gary
0196ff65610046d2f8ba58bc4a45f144?d=identicon&s=25 Piers Cawley (Guest)
on 2006-04-01 23:04
(Received via mailing list)
Gary Shewan <gpsnospam@gmail.com> writes:

> Okay the last version of trunk I was sitting on was r822.  I thought
> I'd embrace 1.1 fully and push up to r983.  Running rake migrate
> throws out these errors:
>
> ** Invoke migrate (first_time)
> ** Invoke environment (first_time)
> ** Execute environment
> ** Execute migrate
> Adding display name to tags

Ah! It's about to be fixed, the migration didn't use a
BareMigration. I caught it on my big trawl through the migrations
fixing things for sqlite.
D6f24842b973de6cb75203c4c57dfbcb?d=identicon&s=25 Gary Shewan (Guest)
on 2006-04-02 12:26
(Received via mailing list)
On 1 Apr 2006, at 22:03, Piers Cawley wrote:

>> Adding display name to tags
>
> Ah! It's about to be fixed, the migration didn't use a
> BareMigration. I caught it on my big trawl through the migrations
> fixing things for sqlite.

That was a very smooth and successful migration from r822 to r984.

Good man Piers!
0196ff65610046d2f8ba58bc4a45f144?d=identicon&s=25 Piers Cawley (Guest)
on 2006-04-03 01:56
(Received via mailing list)
Gary Shewan <gpsnospam@gmail.com> writes:

>>> ** Execute environment
>>> ** Execute migrate
>>> Adding display name to tags
>>
>> Ah! It's about to be fixed, the migration didn't use a
>> BareMigration. I caught it on my big trawl through the migrations
>> fixing things for sqlite.
>
> That was a very smooth and successful migration from r822 to r984.
>
> Good man Piers!

Thank heavens for that. By all rights I should never have checked that
big migration patch in when I did; I'd been working on it for about 8
hours straight, then rushed straight out to the pub, sang myself
hoarse for a couple of hours and the next day was my weekly "NO
COMPUTERS!" day.

Sometimes arrogance pays off I guess.
This topic is locked and can not be replied to.