Solved issue with post. Make sure to change db:stack.stack_code NULL
Before merge
Merge origin/master
Solved issue with default values for properties of model and the erroneous use of the ternairy operator