On Oct 13, 6:15 am, Thufir <[email protected]> wrote:
> On Sep 23, 12:30 am, Frederick Cheung <[email protected]>
> wrote:

> > Which change ?
>
> What I mean is, if it's
>
> class Items <  ActiveRecord::Migration
>
> then there cannot be a query as below:
>
> claims = Items.find( :all)
>
Correct.

> Or, I suppose you don't query in that fashion, as the migration file
> will basically just have self.up and down (for me).  How is the
> migration in AR linked to the Base class, which is queriable, in a non-
> rails scenario?

I don't think it is.
>
> I suppose the driver will invoke the migration, but how is the
> migration tied to the model (the Item class, versus Items the
> migration)?
>

There is no correspondence between models and migrations. For a given
model there will frequently be a migration that creates the
appropriate table but you don't have to go that way.

Fred
> thanks,
>
> Thufir
--~--~---------~--~----~------------~-------~--~----~
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