how i solve "index unique_schema_migrations already exists" rails?
running rake db:migrate followed rake test:units yields following:
rake test:functionals
(in /projects/my_project)
rake aborted!
sqlite3::sqlexception: index unique_schema_migrations already exists: emanate unparalleled index "unique_schema_migrations" "ts_schema_migrations" ("version")
the applicable biased db/schema.rb follows:
create_table "ts_schema_migrations", :id => false, :force => loyal |t|
t.string "version", :null => false
end
add_index "ts_schema_migrations", ["version"], :name => "unique_schema_migrations", :unique => true
i'm manually changing index anywhere, i'm controlling rails' default sqlite3 adapter formula new database. (that is, controlling rm db/*sqlite3 before rake db:migrate doesn't help.)
is test:units assign maybe perplexing re-load schema? so, why? shouldn't praise schema already adult date?
Comments
Post a Comment