lfs_object.rb 243 Bytes EditWeb IDE 1 2 3 4 5 6 7 8 class LfsObject < ActiveRecord::Base has_many :lfs_objects_projects, dependent: :destroy has_many :projects, through: :lfs_objects_projects validates :oid, presence: true, uniqueness: true mount_uploader :file, LfsObjectUploader end