Sha256: 705c8656a22dae5a8ed278a015da118753522f97637e438ee31bd9bd71fae8e9

Contents?: true

Size: 132 Bytes

Versions: 37

Compression:

Stored size: 132 Bytes

Contents

def create_users
  3.times do |x| 
    user = User.find_or_initialize_by_name "Some User #{x}"
    user.save
  end
end

create_users

Version data entries

37 entries across 37 versions & 2 rubygems

Version Path
apartment-0.22.1 spec/dummy/db/seeds.rb
apartment-0.22.0 spec/dummy/db/seeds.rb
apartment-0.21.1 spec/dummy/db/seeds.rb
apartment-0.21.0 spec/dummy/db/seeds.rb
dr-apartment-0.14.1 spec/dummy/db/seeds.rb
apartment-0.20.0 spec/dummy/db/seeds.rb
apartment-0.19.0 spec/dummy/db/seeds.rb
apartment-0.18.0 spec/dummy/db/seeds.rb
apartment-0.17.3 spec/dummy/db/seeds.rb
apartment-0.17.2 spec/dummy/db/seeds.rb
apartment-0.17.1 spec/dummy/db/seeds.rb
apartment-0.17.0 spec/dummy/db/seeds.rb
apartment-0.16.0 spec/dummy/db/seeds.rb
apartment-0.15.0 spec/dummy/db/seeds.rb
apartment-0.14.4 spec/dummy/db/seeds.rb
apartment-0.14.3 spec/dummy/db/seeds.rb
apartment-0.14.2 spec/dummy/db/seeds.rb
apartment-0.13.0.1 spec/dummy/db/seeds.rb
apartment-0.14.1 spec/dummy/db/seeds.rb
apartment-0.14.0 spec/dummy/db/seeds.rb