diff --git a/lib/inferno/db/migrations/010_add_validator_sessions.rb b/lib/inferno/db/migrations/010_add_validator_sessions.rb index f2f3ca4afc..2ae4a5e6ad 100644 --- a/lib/inferno/db/migrations/010_add_validator_sessions.rb +++ b/lib/inferno/db/migrations/010_add_validator_sessions.rb @@ -9,7 +9,7 @@ column :created_at, DateTime, null: false column :updated_at, DateTime, null: false index [:validator_index] - index [test_suite_id] + index [:test_suite_id] end end end diff --git a/lib/inferno/db/schema.rb b/lib/inferno/db/schema.rb index d241abbff0..040e07b4fa 100644 --- a/lib/inferno/db/schema.rb +++ b/lib/inferno/db/schema.rb @@ -23,7 +23,7 @@ primary_key [:id] end - create_table(:validator_sessions) do + create_table(:validator_sessions, :ignore_index_errors=>true) do String :id, :size=>36, :null=>false String :validator_session_id, :size=>255, :null=>false String :test_suite_id, :size=>255, :null=>false @@ -33,9 +33,9 @@ DateTime :updated_at, :null=>false primary_key [:id] - - index [:validator_index] + index [:test_suite_id] + index [:validator_index] end create_table(:session_data, :ignore_index_errors=>true) do