You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As per the documentation, for ActiveRecord integration, all that is required is to run rails db:migrate This also adds the errors table in to the schema.rb file.
The problem is then whenever anyone calls rails db:reset it gets the database configuration from the schema.rb and creates the errors table.
When db:migrate is used again (such as to complete a later migration), it tries to create the errors table again throwing a duplicate table error.
Steps to reproduce
run rails db:migrate to create the errors table and update schema.rb
run rails db:reset to reset the database as per the schema file
run rails db:migrate again to get the exception handler gem to try and recreate the table again
Expected behaviour
Exception handler should know that a table with the same name (and/or same columns) already exists and not try to recreate the table
Actual behaviour
Exception handler tries to recreate the errors table
System Configuration
Ruby 2.2.4
Rails 5.0.1
PostgreSQL 9.5.4
The text was updated successfully, but these errors were encountered:
As per the documentation, for ActiveRecord integration, all that is required is to run
rails db:migrate
This also adds the errors table in to the schema.rb file.The problem is then whenever anyone calls
rails db:reset
it gets the database configuration from the schema.rb and creates the errors table.When db:migrate is used again (such as to complete a later migration), it tries to create the errors table again throwing a duplicate table error.
Steps to reproduce
rails db:migrate
to create the errors table and update schema.rbrails db:reset
to reset the database as per the schema filerails db:migrate
again to get the exception handler gem to try and recreate the table againExpected behaviour
Exception handler should know that a table with the same name (and/or same columns) already exists and not try to recreate the table
Actual behaviour
Exception handler tries to recreate the errors table
System Configuration
Ruby 2.2.4
Rails 5.0.1
PostgreSQL 9.5.4
The text was updated successfully, but these errors were encountered: