Commit a317668f43f13f1145f4eb6549ea03500e830271
1 parent
0bd528ea
make alternative domain as not required field
Showing
2 changed files
with
2 additions
and
2 deletions
| @@ -2,7 +2,7 @@ module Kanjai | @@ -2,7 +2,7 @@ module Kanjai | ||
| 2 | class PageLang < ActiveRecord::Base | 2 | class PageLang < ActiveRecord::Base |
| 3 | 3 | ||
| 4 | belongs_to :domain | 4 | belongs_to :domain |
| 5 | - belongs_to :language_domain | 5 | + belongs_to :language_domain, optional: true |
| 6 | 6 | ||
| 7 | validates :code, :title, presence: true | 7 | validates :code, :title, presence: true |
| 8 | 8 |