Skip to content
This repository has been archived by the owner on Apr 10, 2020. It is now read-only.

Commit

Permalink
Dont validate seeds addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian Nadeau committed Dec 26, 2014
1 parent 2b07671 commit 3a3af80
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions db/seeds.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,16 @@ def create_tutors()
end

def random_address(object)
address = @text.sample.split(", ")
object.create_address({
address1: address[0],
address_csv = @text.sample.split(", ")
address = object.build_address({
address1: address_csv[0],
address2: "",
city: address[1],
postal_code: address[3].gsub("-"," "),
province: address[2],
city: address_csv[1],
postal_code: address_csv[3].gsub("-"," "),
province: address_csv[2],
country: "Canada"
})
address.save(validate: false)
end

def random_date(date1, date2)
Expand Down

0 comments on commit 3a3af80

Please sign in to comment.