populator icon indicating copy to clipboard operation
populator copied to clipboard

Mass populate an Active Record database.

Results 13 populator issues
Sort by recently updated
recently updated
newest added

I got below error. ``` $ rails db:seed rails aborted! NoMethodError: undefined method `sanitize' for # /home/k2/.rvm/gems/ruby-2.4.0/gems/activerecord-5.1.0.rc2/lib/active_record/dynamic_matchers.rb:22:i n `method_missing' /home/k2/.rvm/gems/ruby-2.4.0/gems/populator-1.0.0/lib/populator/factory.rb:85:in `block (2 levels) in rows_sql_arr' /home/k2/.rvm/gems/ruby-2.4.0/gems/populator-1.0.0/lib/populator/factory.rb:85:in `map' /home/k2/.rvm/gems/ruby-2.4.0/gems/populator-1.0.0/lib/populator/factory.rb:85:in `block in...

Hello, I have a rake task that looks like this: namespace :db do desc "Erase and fill database" task :populate => :environment do ``` [A,B].each(&:delete_all) A.populate 15 do |a| a.title...

change the defunct address of faker on rubyforge to the current address on github

``` Restaurant.populate 10..25 do |restaurant| restaurant.name = Populator.words(1..4).titleize restaurant.street_address = Faker::Address.street_address restaurant.description = Populator.sentences(2..8) restaurant.zipcode = Faker::Address.zip_code restaurant.state = "MO" restaurant.phone = Faker::PhoneNumber.phone_number Tagging.populate 6 do |tg| tg.restaurant_id = restaurant.id...

I used populator for first time. Its cool and fills my database with test data very well. One of my models has an create after callback to create ten default...

If I've set a column default in my schema, populator won't set the attribute value and will try saving it as NULL. This causes errors when a column is not...

I am currently on Rails 3.2 with PostgreSQL as database, and the following example does not work as expected: ``` ruby Foo.populate 10 do |foo| Bar.populate 10 do |bar| bar.foo_id...

i am getting "superclass mismatch for class SQLiteAdapter" when using this gem with jruby 1.6.3 Stack trace: superclass mismatch for class SQLiteAdapter /home/ec2-user/.rvm/gems/jruby-1.6.3@dm_app/gems/populator-1.0.0/lib/populator/adapters/sqlite.rb:25:in `ConnectionAdapters' /home/ec2-user/.rvm/gems/jruby-1.6.3@dm_app/gems/populator-1.0.0/lib/populator/adapters/sqlite.rb:24:in`ActiveRecord' /home/ec2-user/.rvm/gems/jruby-1.6.3@dm_app/gems/populator-1.0.0/lib/populator/adapters/sqlite.rb:23:in `(root)' org/jruby/RubyKernel.java:1038:in`require' /home/ec2-user/.rvm/gems/jruby-1.6.3@dm_app/gems/activesupport-3.0.5/lib/active_support/dependencies.rb:239:in `require'...

Let's say we have Book, Shelf and Author models. We can generate Authors and Books inside the loop, but how could we link Shelves? Shelf.populate 20 do |shelf| shelf.name =...

I'm using: Ruby 1.9.2, populator 1.0.0, Rails 3.0.3, and bundler 1.0.9 When I tried starting a bundler console this error happend. It seems that AR isn't required yet so the...