Project

General

Profile

« Previous | Next » 

Revision 89d84f63

Added by Marek Hulán about 7 years ago

Fixes #12163 - add a rake task to clean up orphaned facts

View differences:

app/models/fact_name.rb
scope :no_timestamp_fact, -> { where("fact_names.name <> ?",:_timestamp) }
scope :timestamp_facts, -> { where(:name => :_timestamp) }
scope :composes, -> { where(:compose => true) }
scope :leaves, -> { where(:compose => false) }
scope :with_parent_id, lambda { |find_ids|
conds, binds = [], []
[find_ids].flatten.each do |find_id|

Also available in: Unified diff