Actions
Bug #5970
closedInstalling foreman fails when bootdisk is already installed
Description
When installing foreman if the bootdisk gem/package is already installed prior to the installation script being run the initial migration will fail.
The reason being is that this commit:
references the Setting class, yet if the migration is being run with an empty database the Setting class will fail to load properly.
The cause of this is that line 21 of the Setting class includes:
audited :only => [:value], :on => [:update], :allow_mass_assignment => true
which internally within the audited Gem calls self.column_names. Since the table has not been created yet this fails and active record captures the traceback so the rest of the class (after line 21 does not get executed).
Actions