Class: Conductor::Experiment::Raw
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Conductor::Experiment::Raw
- Defined in:
- lib/conductor/experiment/raw.rb
Overview
Schema Information
Table name: conductor_raw_experiments
id :integer not null, primary key
identity_id :string(255)
group_name :string(255)
option_name :string(255)
conversion_value :decimal(8, 2)
created_at :datetime
updated_at :datetime
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.purge(days_old = 30) ⇒ Object
24 25 26 |
# File 'lib/conductor/experiment/raw.rb', line 24 def self.purge(days_old=30) Conductor::Experiment::Raw.delete_all("created_at <= #{days_old.days.ago}") end |
Instance Method Details
#created_date ⇒ Object
20 21 22 |
# File 'lib/conductor/experiment/raw.rb', line 20 def created_date self.created_at.strftime('%Y-%m-%d') end |