We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Prefecture
1 parent a4fc2d2 commit e5f1b49Copy full SHA for e5f1b49
app/models/prefecture.rb
@@ -0,0 +1,4 @@
1
+class Prefecture < ApplicationRecord
2
+ validates :name, presence: true, uniqueness: true
3
+ validates :region, presence: true
4
+end
0 commit comments