mirror of
https://github.com/CodeforLeipzig/stadtratmonitor.git
synced 2025-01-03 21:12:55 +01:00
Make papers.published_at optional
This commit is contained in:
parent
94f57a0f07
commit
8afc7c9c93
1 changed files with 2 additions and 1 deletions
|
@ -5,7 +5,8 @@ class Paper < ActiveRecord::Base
|
|||
include Elasticsearch::Model
|
||||
include Elasticsearch::Model::Callbacks
|
||||
|
||||
validates_presence_of :body, :content, :name, :originator, :paper_type, :published_at, :reference, :url
|
||||
validates_presence_of :body, :content, :name, :originator, :paper_type, :reference, :url
|
||||
validates_presence_of :published_at, allow_nil: true
|
||||
validates :url, uniqueness: true
|
||||
|
||||
class << self
|
||||
|
|
Loading…
Reference in a new issue