Sha256: 6b0668ca8638056d8aa8b4cbf95cff78da65cbbea7f63b1cef7f9784060e5045

Contents?: true

Size: 695 Bytes

Versions: 21

Compression:

Stored size: 695 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
#  updated_at           :datetime
#

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
enju_event-0.1.17.pre4 app/models/event_import_result.rb
enju_event-0.1.17.pre3 app/models/event_import_result.rb
enju_event-0.1.17.pre2 app/models/event_import_result.rb
enju_event-0.1.17.pre app/models/event_import_result.rb
enju_event-0.1.16 app/models/event_import_result.rb
enju_event-0.1.15 app/models/event_import_result.rb
enju_event-0.1.13 app/models/event_import_result.rb
enju_event-0.0.27 app/models/event_import_result.rb
enju_event-0.0.26 app/models/event_import_result.rb
enju_event-0.0.25 app/models/event_import_result.rb
enju_event-0.1.12 app/models/event_import_result.rb
enju_event-0.1.11 app/models/event_import_result.rb
enju_event-0.0.24 app/models/event_import_result.rb
enju_event-0.0.23 app/models/event_import_result.rb
enju_event-0.1.10 app/models/event_import_result.rb
enju_event-0.1.9 app/models/event_import_result.rb
enju_event-0.0.22 app/models/event_import_result.rb
enju_event-0.0.21 app/models/event_import_result.rb
enju_event-0.1.8 app/models/event_import_result.rb
enju_event-0.0.20 app/models/event_import_result.rb