Sha256: ee74c89050c34de3b38827d393dfbaac780aeeeecec456e3eb7a40b16ae077ac

Contents?: true

Size: 234 Bytes

Versions: 2

Compression:

Stored size: 234 Bytes

Contents

<%= autogenerated_model_warning %>

class Assignment < ApplicationRecord
  validates :canvas_assignment_id, uniqueness: true, presence: true
  belongs_to :context, polymorphic: true, optional: true, primary_key: :canvas_course_id
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
canvas_sync-0.3.13 lib/canvas_sync/generators/templates/models/assignment.rb
canvas_sync-0.3.12 lib/canvas_sync/generators/templates/models/assignment.rb