Skip to content

Commit

Permalink
update course insert task
Browse files Browse the repository at this point in the history
  • Loading branch information
Jennifer Konikowski committed Jun 28, 2019
1 parent 7e98a21 commit 0f15134
Show file tree
Hide file tree
Showing 7 changed files with 128 additions and 123 deletions.
2 changes: 1 addition & 1 deletion app/models/department.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true

class Department < ApplicationRecord
validates :name, presence: true, uniqueness: { case_sensitive: false, scope: :school_id }
validates :name, presence: true
validates :short_name, presence: true, uniqueness: { case_sensitive: false, scope: :school_id }
belongs_to :school
has_many :courses, dependent: :destroy
Expand Down
Loading

0 comments on commit 0f15134

Please sign in to comment.