search for: orderorder

Displaying 1 result from an estimated 1 matches for "orderorder".

Did you mean: ordersorder
2007 Sep 05
8
Hi..Guys new plugin again
...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, the plugin creates: Invoice.belongs_to :orderOrder.has_one :invoice Additionally, if there is a position column in the child table, the parent association will be created with an order clause. For example, given a foreign-key from a order_id column in an order_lines table containing a position column, to an id column in a orders table, the plugin...