fix schema.rb index [ci skip]
better error message, improved date index