fga-eps-mds/2018.2-IndicaAi

View on GitHub
indicaAi/app/models/category_and_local.rb

Summary

Maintainability
A
0 mins
Test Coverage
# model to relationship between category and local
class CategoryAndLocal < ApplicationRecord
  belongs_to :category
  belongs_to :local
  validates_presence_of :category, :local
  validates_uniqueness_of :category_id, scope: :local_id
end