Dear Clemens,

I tried similar thing, but doesn't go well because web server doesn't
run without DB tables.
How did you handle this issue?

Andy

On 11月13ζ—₯, 午後10:55, Clemens <[EMAIL PROTECTED]> 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"?
>
> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to