On 13 Nov 2008, at 13:55, Clemens wrote:
>
>>> My question:
>>> is it "acceptable" to run migrations upon boot OR by invoking them
>>> from within an admin page?
>>
>> If you ran them from the admin page then at the very least you would
>> need to call reset_column_information on all your model classes (in
>> all instances of your application)
>>
>> Fred
> Dear Fred,
> does this also apply to calling migrations upon boot, or woud that be
> "safe"?
>
Depends what you mean by on boot. Would each instance of the app try
and run the migrations ? That would probably result in bad stuff.
Fred
> if (ActiveRecord::Migrator.new(:up, 'db/
> migrate').pending_migrations.length > 0)
> ActiveRecord::Migration.verbose = false
> ActiveRecord::Migrator.migrate("db/migrate/", nil)
> end
>
> Thx
> Clemens
> >
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---