Sha256: 155b37b043b496d0227932300c7e0c8a843cc19f7e854c6f9552fd8ecec0937d

Contents?: true

Size: 227 Bytes

Versions: 15

Compression:

Stored size: 227 Bytes

Contents

class EventUser < ActiveRecord::Base
  belongs_to :event
  belongs_to :user

  def self.generate_random_data(count = 500)
    0.upto(count) do 
      create(:user => User.random, :event => Event.random)      
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
will_filter-5.1.4 test/dummy/app/models/event_user.rb
will_filter-5.1.3 test/dummy/app/models/event_user.rb
will_filter-5.1.2 test/dummy/app/models/event_user.rb
will_filter-5.1.1 test/dummy/app/models/event_user.rb
will_filter-5.1.0 test/dummy/app/models/event_user.rb
will_filter-3.1.11 test/dummy/app/models/event_user.rb
will_filter-3.1.10 test/dummy/app/models/event_user.rb
will_filter-3.1.9 test/dummy/app/models/event_user.rb
will_filter-3.1.8 test/dummy/app/models/event_user.rb
will_filter-3.1.7 test/dummy/app/models/event_user.rb
will_filter-3.1.6 test/dummy/app/models/event_user.rb
will_filter-3.1.5 test/dummy/app/models/event_user.rb
will_filter-3.1.3 test/dummy/app/models/event_user.rb
will_filter-3.1.2 test/dummy/app/models/event_user.rb
will_filter-3.1.1 test/dummy/app/models/event_user.rb