Displaying 1 result from an estimated 1 matches for "customercustomer".
2007 Sep 05
8
Hi..Guys new plugin again
...ns based on foreign-keys. The associations are created at
runtime-ie. as your ActiveRecord models are loaded-so they will always
be up-to-date.
For example, given a foreign-key from a customer_id column in an
orders table to an id column in a customers table, the plugin
creates:
Order.belongs_to :customerCustomer.has_many :orders
If there is a uniqueness constraint-eg unique index-on a foreign-key
column, then the plugin will creates a has_one instead of a has_many.
For example, given a foreign-key from an order_id column with a
uniqueness constraint in an invoices table to an id column in an
orders table,...