The last thread was a great discussion.  I would like to clarify my
understanding for your feedback using the example below:

(Hobo doesn't use the" :unique => true" or ":required=> true", so why
":index = true" instead of ":indexed" ?)

<!-- ====== The Hobo Way ====== -->
fields do

    <!-- ====== short-and-sweet wayto declare indexes ====== -->
    last_name   :string, :required, :indexed
    state_code  :string, :required, :unique, :length =>
2, :indexed

end

<!-- ====== Foreign keys will NOT be indexed:====== -->
has_many :cars, :index => false

<!-- ======  Foreign keys WILL be indexed:====== -->
has_many :posts

<!-- ====== Mult-field index:====== -->
index [:last_name, :state_code], :name =>
"contacts_name_plus_state_index"



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Hobo 
Users" 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/hobousers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to