Sha256: 2620aa88ae111a9a4f34f6bc2616e7e8b7ea37683e37e0c5b599b97a5d99dca3

Contents?: true

Size: 330 Bytes

Versions: 52

Compression:

Stored size: 330 Bytes

Contents

<%= autogenerated_model_warning %>

class Section < ApplicationRecord
  validates :canvas_section_id, uniqueness: true, presence: true
  belongs_to :course, primary_key: :canvas_course_id, foreign_key: :canvas_course_id, optional: true
  has_many :enrollments, primary_key: :canvas_section_id, foreign_key: :canvas_section_id
end

Version data entries

52 entries across 52 versions & 1 rubygems

Version Path
canvas_sync-0.2.4 lib/canvas_sync/generators/templates/section.rb
canvas_sync-0.2.3 lib/canvas_sync/generators/templates/section.rb
canvas_sync-0.2.2 lib/canvas_sync/generators/templates/section.rb
canvas_sync-0.2.1 lib/canvas_sync/generators/templates/section.rb
canvas_sync-0.2.0 lib/canvas_sync/generators/templates/section.rb
canvas_sync-0.1.8 lib/canvas_sync/generators/templates/section.rb
canvas_sync-0.1.7 lib/canvas_sync/generators/templates/section.rb
canvas_sync-0.1.5 lib/canvas_sync/generators/templates/section.rb
canvas_sync-0.1.4 lib/canvas_sync/generators/templates/section.rb
canvas_sync-0.1.3 lib/canvas_sync/generators/templates/section.rb
canvas_sync-0.1.2 lib/canvas_sync/generators/templates/section.rb
canvas_sync-0.1.1 lib/canvas_sync/generators/templates/section.rb