Rails engine migration not loading Rails Engine?


#1

I am trying to run a Rails Engine migration, however, the rake task is
acting like the Rails Engine plugin has not been loaded. Is there some
include that is missing from the Rails Engine plugin install, or that I
should have known to put in myself?

Here is the trace from my rake task:

ron-evans-computer:~/Desktop/grownups ron$ rake db:migrate --trace
(in /Users/ron/Desktop/grownups)
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:migrate
== SavageBeastToVersion49: migrating

rake aborted!
undefined method plugins' for GetText::Rails:Module ./db/migrate//018_savage_beast_to_version_49.rb:3:inreal_up’
/Applications/Locomotive2/Bundles/rmagickRailsMar2007_i386.locobundle/framework/lib/ruby/gems/1.8/gems/activerecord-
1.15.3/lib/active_record/migration.rb:212:in send' /Applications/Locomotive2/Bundles/rmagickRailsMar2007_i386.locobundle/framework/lib/ruby/gems/1.8/gems/activerecord- 1.15.3/lib/active_record/migration.rb:212:inmigrate’
/Applications/Locomotive2/Bundles/rmagickRailsMar2007_i386.locobundle/framework/lib/ruby/1.8/benchmark.rb:293:in
measure' /Applications/Locomotive2/Bundles/rmagickRailsMar2007_i386.locobundle/framework/lib/ruby/gems/1.8/gems/activerecord- 1.15.3/lib/active_record/migration.rb:212:inmigrate’
/Applications/Locomotive2/Bundles/rmagickRailsMar2007_i386.locobundle/framework/lib/ruby/gems/1.8/gems/activerecord-
1.15.3/lib/active_record/migration.rb:335:in migrate' /Applications/Locomotive2/Bundles/rmagickRailsMar2007_i386.locobundle/framework/lib/ruby/gems/1.8/gems/activerecord- 1.15.3/lib/active_record/migration.rb:330:ineach’
/Applications/Locomotive2/Bundles/rmagickRailsMar2007_i386.locobundle/framework/lib/ruby/gems/1.8/gems/activerecord-
1.15.3/lib/active_record/migration.rb:330:in migrate' /Applications/Locomotive2/Bundles/rmagickRailsMar2007_i386.locobundle/framework/lib/ruby/gems/1.8/gems/activerecord- 1.15.3/lib/active_record/migration.rb:297:inup’
/Applications/Locomotive2/Bundles/rmagickRailsMar2007_i386.locobundle/framework/lib/ruby/gems/1.8/gems/activerecord-
1.15.3/lib/active_record/migration.rb:288:in migrate' /Applications/Locomotive2/Bundles/rmagickRailsMar2007_i386.locobundle/framework/lib/ruby/gems/1.8/gems/rails- 1.2.3/lib/tasks/databases.rake:4 /Applications/Locomotive2/Bundles/rmagickRailsMar2007_i386.locobundle/framework/lib/ruby/gems/1.8/gems/rake- 0.7.2/lib/rake.rb:399:incall’
/Applications/Locomotive2/Bundles/rmagickRailsMar2007_i386.locobundle/framework/lib/ruby/gems/1.8/gems/rake-
0.7.2/lib/rake.rb:399:in execute' /Applications/Locomotive2/Bundles/rmagickRailsMar2007_i386.locobundle/framework/lib/ruby/gems/1.8/gems/rake- 0.7.2/lib/rake.rb:399:ineach’
/Applications/Locomotive2/Bundles/rmagickRailsMar2007_i386.locobundle/framework/lib/ruby/gems/1.8/gems/rake-
0.7.2/lib/rake.rb:399:in execute' /Applications/Locomotive2/Bundles/rmagickRailsMar2007_i386.locobundle/framework/lib/ruby/gems/1.8/gems/rake- 0.7.2/lib/rake.rb:369:ininvoke’
/Applications/Locomotive2/Bundles/rmagickRailsMar2007_i386.locobundle/framework/lib/ruby/gems/1.8/gems/rake-
0.7.2/lib/rake.rb:362:in synchronize' /Applications/Locomotive2/Bundles/rmagickRailsMar2007_i386.locobundle/framework/lib/ruby/gems/1.8/gems/rake- 0.7.2/lib/rake.rb:362:ininvoke’
/Applications/Locomotive2/Bundles/rmagickRailsMar2007_i386.locobundle/framework/lib/ruby/gems/1.8/gems/rake-
0.7.2/lib/rake.rb:1935:in run' /Applications/Locomotive2/Bundles/rmagickRailsMar2007_i386.locobundle/framework/lib/ruby/gems/1.8/gems/rake- 0.7.2/lib/rake.rb:1935:ineach’
/Applications/Locomotive2/Bundles/rmagickRailsMar2007_i386.locobundle/framework/lib/ruby/gems/1.8/gems/rake-
0.7.2/lib/rake.rb:1935:in run' /Applications/Locomotive2/Bundles/rmagickRailsMar2007_i386.locobundle/framework/lib/ruby/gems/1.8/gems/rake- 0.7.2/bin/rake:7 /Applications/Locomotive2/Bundles/rmagickRailsMar2007_i386.locobundle/framework/bin/rake:16:inload’
/Applications/Locomotive2/Bundles/rmagickRailsMar2007_i386.locobundle/framework/bin/rake:16


#2

At a guess, it looks like some reference to Rails.plugins is actually
hitting the GetText::Rails constant, rather than the ::Rails constant.
You might try looking for that…