mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 17:59:47 +02:00
Fixed seeds for registrar updates
This commit is contained in:
parent
fcd3f4146b
commit
6e2eaf6fff
2 changed files with 10 additions and 3 deletions
|
@ -11,7 +11,7 @@
|
|||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 20150203135303) do
|
||||
ActiveRecord::Schema.define(version: 20150212125339) do
|
||||
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "plpgsql"
|
||||
|
@ -29,6 +29,7 @@ ActiveRecord::Schema.define(version: 20150203135303) do
|
|||
t.string "creator_str"
|
||||
t.string "updator_str"
|
||||
t.string "country_code"
|
||||
t.string "state"
|
||||
end
|
||||
|
||||
create_table "api_users", force: :cascade do |t|
|
||||
|
|
10
db/seeds.rb
10
db/seeds.rb
|
@ -4,7 +4,10 @@
|
|||
registrar1 = Registrar.where(
|
||||
name: 'Registrar First AS',
|
||||
reg_no: '10300220',
|
||||
address: 'Pärnu mnt 2, Tallinna linn, Harju maakond, 11415',
|
||||
street: 'Pärnu mnt 2',
|
||||
city: 'Tallinn',
|
||||
state: 'Harju maakond',
|
||||
zip: '11415',
|
||||
email: 'registrar1@example.com',
|
||||
country_code: 'EE'
|
||||
).first_or_create!
|
||||
|
@ -19,7 +22,10 @@ ApiUser.where(
|
|||
registrar2 = Registrar.where(
|
||||
name: 'Registrar Second AS',
|
||||
reg_no: '10529229',
|
||||
address: 'Vabaduse pst 32, 11316 Tallinn',
|
||||
street: 'Vabaduse pst 32',
|
||||
city: 'Tallinn',
|
||||
state: 'Harju maakond',
|
||||
zip: '11315',
|
||||
email: 'registrar2@example.com',
|
||||
country_code: 'EE'
|
||||
).first_or_create!
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue