Fixed Project releationships and database migration

This commit is contained in:
2017-11-17 10:14:05 -05:00
parent dba6c4b131
commit d98a8b8cc4
4 changed files with 8 additions and 14 deletions

View File

@@ -24,7 +24,8 @@ module ProjectPatch
unloadable # Send unloadable so it will not be unloaded in development
belongs_to :customer, primary_key: :id
belongs_to :vehicle, primary_key: :id
end
end
end
end
module ClassMethods
@@ -35,5 +36,5 @@ module InstanceMethods
end
# Add module to Issue
# Add module to Project
Project.send(:include, ProjectPatch)