merit-gem / merit

Reputation engine for Rails apps
Other
1.53k stars 198 forks source link

Fix merit_actions migration template #357

Closed pirj closed 3 years ago

pirj commented 3 years ago

If add_index call is outside the def change method definition, it's executed right away, and:

Caused by:
ActiveRecord::StatementInvalid: PG::UndefinedTable: ERROR:  relation "merit_actions" does not exist
coveralls commented 3 years ago

Coverage Status

Coverage remained the same at 90.684% when pulling 62fd67afbe44ce4d6e5a9e728c8b4708afc865a9 on pirj:fix-merit_actions-migration-template into b002ab925c24d857549bcb7131dc047f89a4ccb1 on merit-gem:master.

coveralls commented 3 years ago

Coverage Status

Coverage remained the same at 90.684% when pulling 62fd67afbe44ce4d6e5a9e728c8b4708afc865a9 on pirj:fix-merit_actions-migration-template into b002ab925c24d857549bcb7131dc047f89a4ccb1 on merit-gem:master.

tute commented 3 years ago

Thank you!