Sha256: a9b4d3e61da5158ebd728642875faef0d8c89006c0f0f30703c27300b8151e76

Contents?: true

Size: 730 Bytes

Versions: 14

Compression:

Stored size: 730 Bytes

Contents

class EventImportResult < ActiveRecord::Base
  attr_accessible :event_id, :event_import_file_id, :body, :as => :admin
  default_scope :order => 'event_import_results.id'
  scope :file_id, proc{|file_id| {:conditions => {:event_import_file_id => file_id}}}
  scope :failed, where(:event_id => nil)

  belongs_to :event_import_file
  belongs_to :event

  validates_presence_of :event_import_file_id
end

# == Schema Information
#
# Table name: event_import_results
#
#  id                   :integer          not null, primary key
#  event_import_file_id :integer
#  event_id             :integer
#  body                 :text
#  created_at           :datetime         not null
#  updated_at           :datetime         not null
#

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
enju_event-0.1.17.pre18 app/models/event_import_result.rb
enju_event-0.1.17.pre17 app/models/event_import_result.rb
enju_event-0.1.17.pre16 app/models/event_import_result.rb
enju_event-0.1.17.pre15 app/models/event_import_result.rb
enju_event-0.1.17.pre14 app/models/event_import_result.rb
enju_event-0.1.17.pre13 app/models/event_import_result.rb
enju_event-0.1.17.pre12 app/models/event_import_result.rb
enju_event-0.1.17.pre11 app/models/event_import_result.rb
enju_event-0.1.17.pre10 app/models/event_import_result.rb
enju_event-0.1.17.pre9 app/models/event_import_result.rb
enju_event-0.1.17.pre8 app/models/event_import_result.rb
enju_event-0.1.17.pre7 app/models/event_import_result.rb
enju_event-0.1.17.pre6 app/models/event_import_result.rb
enju_event-0.1.17.pre5 app/models/event_import_result.rb