From c3ebbfa8f84c6a9bbadd85648c73812fd179719f Mon Sep 17 00:00:00 2001 From: baarkerlounger Date: Tue, 30 Nov 2021 13:23:25 +0000 Subject: [PATCH] Better org seed --- db/seeds.rb | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/db/seeds.rb b/db/seeds.rb index 99d537266..6ff200682 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -6,6 +6,15 @@ # movies = Movie.create([{ name: 'Star Wars' }, { name: 'Lord of the Rings' }]) # Character.create(name: 'Luke', movie: movies.first) -org = Organisation.create!(name: "DLUHC", address_line1: "2 Marsham Street", address_line2: "London", postcode: "SW1P 4DF") +org = Organisation.create!( + name: "DLUHC", + address_line1: "2 Marsham Street", + address_line2: "London", + postcode: "SW1P 4DF", + local_authorities: "None", + holds_own_stock: false, + other_stock_owners: "None", + managing_agents: "None", +) User.create!(email: "test@example.com", password: "password", organisation: org) AdminUser.create!(email: "admin@example.com", password: "password")