forgeplus/app/models/commit.rb

4 lines
85 B
Ruby

class Commit < ApplicationRecord
belongs_to :project, foreign_key: :project_id
end