Re-use the constants to set the enum values on the push event model

parent f48d447a
...@@ -7,7 +7,7 @@ module Geo ...@@ -7,7 +7,7 @@ module Geo
belongs_to :project belongs_to :project
enum source: { repository: 0, wiki: 1 } enum source: { repository: REPOSITORY, wiki: WIKI }
validates :project, presence: true validates :project, presence: true
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment