I had an application on Rails 1.2 or 1.1 (don’t remember). Now I have
updated it to 2.1.
I had a migrations_helper.rb in the Libs directory which defined
foreign_key and drop_foreign_key methods. But now migrate task doesn’t
find them. Have I to include this directory somewhere with Rails 2.1?
Doesn’t it work as always?
Could I use another thing to declare foreign keys without having a
class made by myself?
I had an application on Rails 1.2 or 1.1 (don’t remember). Now I have
updated it to 2.1.
I had a migrations_helper.rb in the Libs directory which defined
foreign_key and drop_foreign_key methods. But now migrate task doesn’t
find them. Have I to include this directory somewhere with Rails 2.1?
Doesn’t it work as always?
Could I use another thing to declare foreign keys without having a
class made by myself?
Depends how your code works,
but I imagine you’re extending the existing rails migration classes.
so I’d suggest doing a “require ‘migration_extensions’” at the top of
the migration file.