create initializer.rb and fix priority model associations