Running rake db:migrate , followed by rake test:units , gives the following:
rake test:functionals (in /projects/my_project) rake aborted! SQLite3::SQLException: index unique_schema_migrations already exists: CREATE UNIQUE INDEX "unique_schema_migrations" ON "ts_schema_migrations" ("version")
The relevant part of db/schema.rb as follows:
create_table "ts_schema_migrations", :id => false, :force => true do |t| t.string "version", :null => false end add_index "ts_schema_migrations", ["version"], :name => "unique_schema_migrations", :unique => true
I do not manually change this index anywhere, and I use the default SQLite3 Rails adapter with a new database. (That is, running rm db/*sqlite3 before rake db:migrate does not help.)
Can the test:units task try to reload the circuit? If so, why? Shouldn't he recognize a circuit already updated?
source share