oveits / ProvisioningEngine

Ruby on Rails based ProvisioningEngine Frontend for provisioning of legacy systems via Apache Camel Backend (SOAP/XML+SPML+File import)
3 stars 6 forks source link

rake db:migrate returns Warning: Ignoring invalid model SystemSetting (table system_settings does not exist) #26

Closed oveits closed 8 years ago

oveits commented 8 years ago
$ rake db:migrate
Loading application environment...
Loading code in search of Active Record models...
Generating Entity-Relationship Diagram for 12 models...
Warning: Ignoring invalid model SystemSetting (table system_settings does not exist)
Warning: Ignoring invalid association :resource on ActiveAdmin::Comment (polymorphic interface Resource does not exist)
Warning: Ignoring invalid association :author on ActiveAdmin::Comment (polymorphic interface Author does not exist)
Done! Saved diagram to erd.pdf.

Hm. Why is the system_settings table not be created?

I know: I have introduced a bug, when I have changed .gitignore: now the db migrations are excluded now. I need to open a new bug for this. I have not recognized the problem, because the active admin System Settings pages are not yet tested.

Prio 1: create some simple tests for Active Admin System Settings Prio 2: resolve the gitignore problem by including migrations

oveits commented 8 years ago

1) Simple tests are created on spec/requests/system_settings_spec.rb -> forces travisCI to fail the tests 2) gitignore is corrected and now travisCI succeeds again resolved.

This issue will automatically be closed as soon as I merge the development branch to the master branch...