Skip to content

Commit

Permalink
Remove root_id validation.
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkMT committed Jul 2, 2020
1 parent 1af3e77 commit 11017b2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/fragmentary/fragment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,10 @@ def self.included(base)

attr_accessor :indexed_children

validates :root_id, :presence => true

self.cache_timestamp_format = :usec # Probably not needed for Rails 5, which uses :usec by default.
# Set cache timestamp format to :usec instead of :nsec because the latter is greater precision than Postgres supports,
# resulting in mismatches between timestamps on a newly created fragment and one retrieved from the database.
# Probably not needed for Rails 5, which uses :usec by default.
self.cache_timestamp_format = :usec

end

Expand Down

0 comments on commit 11017b2

Please sign in to comment.