test/dummy/app/models/populate.rb in rails_db-0.5.1 vs test/dummy/app/models/populate.rb in rails_db-0.6
- old
+ new
@@ -1,8 +1,8 @@
class Populate
- def self.populate
+ def Populate.populate
require 'populator'
require 'faker'
Account.populate 20 do |account|
account.name = Faker::Company.name
@@ -29,9 +29,14 @@
user.dob = Date.today - rand(10000).days
end
Project.populate 100 do |project|
project.name = Faker::Company.name
+ end
+
+ LegacyAccount.populate 100 do |account|
+ account.uuid = rand(1_000_000)
+ account.name = Faker::Company.name
end
end
end