Indexes and auto migration in DataMapper
< snusnu>JamesHarrison, knowtheory: you *can* specfiy indexes
<@dkubb>yeah
<@dkubb>you can go: property :name, String, :index => true
<@dkubb>that'll create an index for just that property
<@dkubb>you can also go: property :name, String, :index => :something
< snusnu>JamesHarrison: :index => true or :unique_index => true, or :unique_index => :some_index_name (for compound indices)
<@dkubb>where :something is a label that multiple properties share
blog comments powered by Disqus