If I run `DataMapper.auto_migrate!` it creates the entire schema
including the indexes, so I think I've got the syntax right in my
models. However, if I run `DataMapper.auto_upgrade!` on my existing
database, the schema is not updated to include the indexes. I'm using
a sqlite3 database. Am I doing something wrong?
Thanks in advance.
Drew
=============================
The relevant bits of my models (see also http://pastie.org/641532):
class Status
include DataMapper::Resource
property :id, Serial
property :twitter_id, Integer, :index => true
property :text, String, :length => 0..255
property :created_at, DateTime, :index => true
...
end
class Noun
include DataMapper::Resource
property :id, Serial
property :plural, String, :length => 0..255, :index =>
true
...
end
class Collector
include DataMapper::Resource
property :id, Serial
property :name, String, :length => 0..255, :index
=> :collector
property :noun_id, Integer, :index
=> :collector
...
end