Sha256: 476dca365b0bf8d61886af65d0cde302cf14a7f995427573822d233a7cf23d21

Contents?: true

Size: 454 Bytes

Versions: 27

Compression:

Stored size: 454 Bytes

Contents

<%= autogenerated_model_warning %>

class Submission < ApplicationRecord
  validates :canvas_submission_id, uniqueness: true, presence: true
  belongs_to :assignment, primary_key: :canvas_assignment_id, foreign_key: :canvas_assignment_id, optional: true
  belongs_to :user, primary_key: :canvas_user_id, foreign_key: :canvas_user_id, optional: true
  belongs_to :course, primary_key: :canvas_course_id, foreign_key: :canvas_course_id, optional: true
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
canvas_sync-0.8.1 lib/canvas_sync/generators/templates/models/submission.rb
canvas_sync-0.8.0 lib/canvas_sync/generators/templates/models/submission.rb
canvas_sync-0.7.3 lib/canvas_sync/generators/templates/models/submission.rb
canvas_sync-0.7.2 lib/canvas_sync/generators/templates/models/submission.rb
canvas_sync-0.7.1 lib/canvas_sync/generators/templates/models/submission.rb
canvas_sync-0.7.0 lib/canvas_sync/generators/templates/models/submission.rb
canvas_sync-0.6.4 lib/canvas_sync/generators/templates/models/submission.rb
canvas_sync-0.6.3 lib/canvas_sync/generators/templates/models/submission.rb
canvas_sync-0.6.2 lib/canvas_sync/generators/templates/models/submission.rb
canvas_sync-0.6.1 lib/canvas_sync/generators/templates/models/submission.rb
canvas_sync-0.6.0 lib/canvas_sync/generators/templates/models/submission.rb
canvas_sync-0.5.4 lib/canvas_sync/generators/templates/models/submission.rb
canvas_sync-0.5.3 lib/canvas_sync/generators/templates/models/submission.rb
canvas_sync-0.5.2 lib/canvas_sync/generators/templates/models/submission.rb
canvas_sync-0.5.1 lib/canvas_sync/generators/templates/models/submission.rb
canvas_sync-0.4.1 lib/canvas_sync/generators/templates/models/submission.rb
canvas_sync-0.4.0 lib/canvas_sync/generators/templates/models/submission.rb
canvas_sync-0.3.23 lib/canvas_sync/generators/templates/models/submission.rb
canvas_sync-0.3.22 lib/canvas_sync/generators/templates/models/submission.rb
canvas_sync-0.3.21 lib/canvas_sync/generators/templates/models/submission.rb