Office.find_or_create_by(name: 'Digital')
Office.find_or_create_by(name: 'Bristol')

unless ENV=='production'
  User.create([{
                name: 'Admin',
                email: 'fee-remission@digital.justice.gov.uk',
                password: '123456789',
                role: 'admin',
                office: Office.find_by(name: 'Digital')
              },
              {
                name: 'User',
                email: 'bristol.user@hmcts.gsi.gov.uk',
                password: '987654321',
                role: 'user',
                office: Office.find_by(name: 'Bristol')
              }
              ])
end

Jurisdiction.create([{ name: 'County Court', abbr: nil },
                     { name: 'High Court', abbr: nil },
                     { name: 'Insolvency', abbr: nil },
                     { name: 'Family Court', abbr: nil },
                     { name: 'Probate', abbr: nil },
                     { name: 'Court of Protection', abbr: 'COP' },
                     { name: 'Magistrates Civil', abbr: nil },
                     { name: 'Gambling', abbr: nil },
                     { name: 'Employment Tribunal', abbr: nil },
                     { name: 'Gender Tribunal', abbr: nil },
                     { name: 'Land & Property Chamber', abbr: nil },
                     { name: 'Immigration Appeal Chamber', abbr: 'IAC' },
                     { name: 'Upper Tribunal Immigration Appeal Chamber', abbr: 'UTIAC' }])

Office.find_or_create_by(name: 'Digital')
Office.find_or_create_by(name: 'Bristol')

unless ENV=='production'
  User.create([{
                name: 'Admin',
                email: 'fee-remission@digital.justice.gov.uk',
                password: '123456789',
                role: 'admin',
                office: Office.find_by(name: 'Digital')
              },
              {
                name: 'User',
                email: 'bristol.user@hmcts.gsi.gov.uk',
                password: '987654321',
                role: 'user',
                office: Office.find_by(name: 'Bristol')
              }
              ])
end

Jurisdiction.create([{ name: 'County', abbr: nil },
                     { name: 'Family', abbr: nil },
                     { name: 'High', abbr: nil },
                     { name: 'Insolvency', abbr: nil },
                     { name: 'Magistrates', abbr: nil },
                     { name: 'Probate', abbr: nil },
                     { name: 'Employment', abbr: nil },
                     { name: 'Gambling', abbr: nil },
                     { name: 'Gender recognition', abbr: nil },
                     { name: 'Immigration (first-tier)', abbr: nil },
                     { name: 'Immigration (upper)', abbr: nil },
                     { name: 'Property', abbr: nil }])

Copy changed of jurisdiction names in seed data
Copy changed of jurisdiction names in seed data
