magic_addresses 0.0.43 → 0.0.44

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 846a852f80f648ff9d56dccd47e93e833b7d0cd9
4
- data.tar.gz: efa7826e64ff4c6650217c0f96f692f7594db2f9
3
+ metadata.gz: 52f9e4860c69d3d757ffd44605b1077caeb42edd
4
+ data.tar.gz: 10dfd7114637817074de71b628594dbfd735002c
5
5
  SHA512:
6
- metadata.gz: 3cc46873a9cb142446e57ebb55a784370cc1133ab9610e25dc581c71dcd2932f4cd61a99fb2f021ddd43a772f10b9e806dc467580d1530cd1b3f533cbea750ef
7
- data.tar.gz: 33c83e8709a761cf493b0795bb1c91d6d198e3b998a903ab5d41c38962ee975abebe851ad55ac711bf7d5b1d28342a92d62e0c873fba60cd82b451e1469c6f9c
6
+ metadata.gz: 077045256cb7458ddb129830d3dfa1fa3eac7b4a1509fd8b7db414211aaf94cb4babed252a1eb8a284b70ea57db087900f9b661d0c11c293987f6f09b1f23495
7
+ data.tar.gz: c579941bfd12413902987fca3517053583f1e56a566867689719a10297b8243f9cfed7a3c7d28b21ce1b98ec397bda8a25021aa4b0491023f221ef0975164d5a
data/README.md CHANGED
@@ -27,8 +27,34 @@ rails g magic_addresses:install
27
27
 
28
28
 
29
29
 
30
- ## New
31
- since version `0.0.13` addresses are uniq, so the same address never will be saved twice, instead owners share one address
30
+ ## News
31
+ ##### since version `0.0.44` there are named addresses, so one model can have multiple-times one-address
32
+
33
+ run:
34
+ ```ruby
35
+ rails g magic_addresses:add_named_addresses
36
+ .. or ..
37
+ rails g magic_addresses:update
38
+ ```
39
+ and migrate your Database
40
+
41
+
42
+ Model-Example
43
+ ```ruby
44
+ class Customer < ActiveRecord::Base
45
+
46
+ has_one_address()
47
+ has_one_named_address( "invoice_address" )
48
+ has_one_named_address( "delivery_address" )
49
+
50
+ end
51
+ ```
52
+
53
+
54
+
55
+
56
+
57
+ ##### since version `0.0.13` addresses are uniq, so the same address never will be saved twice, instead owners share one address
32
58
 
33
59
  run:
34
60
  ```ruby
@@ -53,9 +79,21 @@ be sure to activate it in initializer before migrate!
53
79
 
54
80
  has_addresses # => This model has many addresses. (ie: Company)
55
81
 
56
- # You can use `has_one_address` and `has_addresses` on the same model
57
- # `has_one_address` sets the default flag so could be major address.
82
+ # You can use `has_one_address` and `has_addresses` on the same model
83
+ # `has_one_address` sets the default flag so could be major address.
58
84
 
85
+ ## NEW:
86
+
87
+ has_one_named_address( "name_me" )
88
+
89
+ # works together with the other both .. so models can have multiple single addresses
90
+ # ie:
91
+ has_one_address()
92
+ has_one_named_address( "invoice_address" )
93
+ has_one_named_address( "delivery_address" )
94
+
95
+
96
+ ## UNSTABLE:
59
97
  has_nested_address # => Has one directly nested addresses. (ie: User.street, User.city)
60
98
 
61
99
  ```
@@ -76,7 +76,7 @@ class MagicAddresses::Address < ActiveRecord::Base
76
76
  # settter methods
77
77
  %w[country state city district subdistrict street number postalcode country_code].each do |key|
78
78
  define_method("#{key}=") do |value|
79
- self.street_name = value if key == "street"
79
+ # self.street_name = value if key == "street"
80
80
  self.fetch_address = (fetch_address || {}).merge("fetch_#{ key == 'postalcode' ? 'zipcode' : key }" => value)
81
81
  end
82
82
  end
@@ -149,6 +149,27 @@ class MagicAddresses::Address < ActiveRecord::Base
149
149
  end
150
150
  end
151
151
 
152
+ def display( *args )
153
+ options = args.extract_options!
154
+ ## style => 'inline' | 'full'
155
+ style = args.first || options[:style] if args.first.present? || options[:style].present?
156
+ show_state = options[:state].present? ? options[:state] : false
157
+ show_country = options[:country].present? ? options[:country] : false
158
+ show_district = options[:district].present? ? options[:district] : false
159
+ show_subdistrict = options[:subdistrict].present? ? options[:subdistrict] : false
160
+ adr = []
161
+ adr << "#{street} #{number}".strip if street.present?
162
+ adr << "#{postalcode} #{city}".strip if zipcode.present? || city.present?
163
+ adr << "#{district.present? && show_district ? district : ''} #{subdistrict.present? && show_subdistrict ? "(#{subdistrict})" : ''}".strip if show_district || show_subdistrict
164
+ adr << state if state.present? && show_state
165
+ adr << country if country.present? && show_country
166
+ if adr.count == 0
167
+ I18n.t("addresses.no_address_given")
168
+ else
169
+ type == "full" ? adr.join("<br />") : adr.join(", ")
170
+ end
171
+ end
172
+
152
173
  def owners
153
174
  addressibles.map { |that| ::MagicAddresses::OwnerProxy.new( that ) }
154
175
  end
@@ -38,7 +38,7 @@ module MagicAddresses
38
38
  # dependent: :destroy
39
39
 
40
40
  has_one :addressible,
41
- -> { where(default: true) },
41
+ -> { where(default: true, named_address: ["", nil]) },
42
42
  as: :owner,
43
43
  class_name: "MagicAddresses::Addressible",
44
44
  dependent: :destroy
@@ -50,6 +50,28 @@ module MagicAddresses
50
50
  # accepts_nested_attributes_for :addressible, :address, allow_destroy: true, reject_if: :all_blank
51
51
  end
52
52
 
53
+ def has_one_named_address( name = "address" )
54
+
55
+ has_one "#{name}_addressible".to_sym,
56
+ -> { where(default: true, named_address: name) },
57
+ as: :owner,
58
+ class_name: "MagicAddresses::Addressible",
59
+ dependent: :destroy
60
+
61
+ has_one "#{name}".to_sym,
62
+ through: "#{name}_addressible".to_sym,
63
+ source: :address
64
+
65
+ define_method "#{name}_attributes=" do |params|
66
+ self.send( "#{name}=", MagicAddresses::Address.get_one( self, params ) )
67
+ end
68
+
69
+ define_method "#{name}_addressible_attributes=" do |params|
70
+ self.send( "#{name}=", MagicAddresses::Address.get_one( self, params["#{name}_attributes".to_sym] ) )
71
+ end
72
+
73
+ end
74
+
53
75
 
54
76
  def has_nested_address
55
77
  send :include, NestedInstanceMethods
@@ -95,6 +117,22 @@ module MagicAddresses
95
117
 
96
118
  end #> InstanceMethods
97
119
 
120
+
121
+ # module OneNamedInstanceMethods
122
+ # @@named_address.each do |that|
123
+ #
124
+ # define_method "#{that}_attributes=" do |params|
125
+ # self.send( "#{that}=", MagicAddresses::Address.get_one( self, params ) )
126
+ # end
127
+ #
128
+ # define_method "#{that}_addressible_attributes=" do |params|
129
+ # self.send( "#{that}", MagicAddresses::Address.get_one( self, params[:address_attributes] ) )
130
+ # end
131
+ #
132
+ # end if @@named_address
133
+ # end #> OneNamedInstanceMethods
134
+
135
+
98
136
  module NestedInstanceMethods
99
137
 
100
138
  # http://stackoverflow.com/a/4033761
@@ -0,0 +1,25 @@
1
+ require 'rails/generators/migration'
2
+
3
+ module MagicAddresses
4
+ module Generators
5
+ class AddNamedAddressesGenerator < ::Rails::Generators::Base
6
+ include Rails::Generators::Migration
7
+ source_root File.expand_path('../templates', __FILE__)
8
+ desc "add named_addresses update migrations"
9
+
10
+ def self.next_migration_number(path)
11
+ unless @prev_migration_nr
12
+ @prev_migration_nr = Time.now.utc.strftime("%Y%m%d%H%M%S").to_i
13
+ else
14
+ @prev_migration_nr += 1
15
+ end
16
+ @prev_migration_nr.to_s
17
+ end
18
+
19
+ def copy_migrations
20
+ migration_template( "add_named_addresses_migration.rb", "db/migrate/add_named_addresses.rb" )
21
+ end
22
+
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,17 @@
1
+ # encoding: utf-8
2
+ class AddNamedAddresses < ActiveRecord::Migration
3
+ def change
4
+
5
+
6
+ # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
7
+ ## add new field for named addresses
8
+
9
+ add_column :mgca_addressibles, :named_address, :string
10
+
11
+ add_index :mgca_addressibles, :named_address
12
+
13
+ # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
14
+
15
+
16
+ end
17
+ end
@@ -17,7 +17,10 @@ module MagicAddresses
17
17
  end
18
18
 
19
19
  def copy_migrations
20
+ ## copy update migration
20
21
  migration_template( "update_address_migration.rb", "db/migrate/update_magic_addresses.rb" )
22
+ ## copy named_address migration
23
+ migration_template( "add_named_addresses_migration.rb", "db/migrate/add_named_addresses.rb" )
21
24
  end
22
25
 
23
26
  end
@@ -1,3 +1,3 @@
1
1
  module MagicAddresses
2
- VERSION = "0.0.43"
2
+ VERSION = "0.0.44"
3
3
  end
@@ -0,0 +1,9 @@
1
+ class Customer < ActiveRecord::Base
2
+
3
+
4
+ has_one_address()
5
+ has_one_named_address( "invoice_address" )
6
+ has_one_named_address( "delivery_address" )
7
+
8
+
9
+ end
@@ -0,0 +1,12 @@
1
+ class CreateCustomers < ActiveRecord::Migration
2
+ def change
3
+
4
+
5
+ create_table :customers do |t|
6
+ t.string :name
7
+ t.timestamps null: false
8
+ end
9
+
10
+
11
+ end
12
+ end
@@ -0,0 +1,17 @@
1
+ # encoding: utf-8
2
+ class AddNamedAddresses < ActiveRecord::Migration
3
+ def change
4
+
5
+
6
+ # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
7
+ ## add new field for named addresses
8
+
9
+ add_column :mgca_addressibles, :named_address, :string
10
+
11
+ add_index :mgca_addressibles, :named_address
12
+
13
+ # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
14
+
15
+
16
+ end
17
+ end
@@ -11,7 +11,10 @@
11
11
  #
12
12
  # It's strongly recommended that you check this file into your version control system.
13
13
 
14
- ActiveRecord::Schema.define(version: 20151118102658) do
14
+ ActiveRecord::Schema.define(version: 20161013102744) do
15
+
16
+ # These are extensions that must be enabled in order to support this database
17
+ enable_extension "plpgsql"
15
18
 
16
19
  create_table "companies", force: :cascade do |t|
17
20
  t.string "name"
@@ -19,6 +22,12 @@ ActiveRecord::Schema.define(version: 20151118102658) do
19
22
  t.datetime "updated_at", null: false
20
23
  end
21
24
 
25
+ create_table "customers", force: :cascade do |t|
26
+ t.string "name"
27
+ t.datetime "created_at", null: false
28
+ t.datetime "updated_at", null: false
29
+ end
30
+
22
31
  create_table "mgca_address_translations", force: :cascade do |t|
23
32
  t.integer "mgca_address_id", null: false
24
33
  t.string "locale", null: false
@@ -27,8 +36,8 @@ ActiveRecord::Schema.define(version: 20151118102658) do
27
36
  t.string "street_name"
28
37
  end
29
38
 
30
- add_index "mgca_address_translations", ["locale"], name: "index_mgca_address_translations_on_locale"
31
- add_index "mgca_address_translations", ["mgca_address_id"], name: "index_mgca_address_translations_on_mgca_address_id"
39
+ add_index "mgca_address_translations", ["locale"], name: "index_mgca_address_translations_on_locale", using: :btree
40
+ add_index "mgca_address_translations", ["mgca_address_id"], name: "index_mgca_address_translations_on_mgca_address_id", using: :btree
32
41
 
33
42
  create_table "mgca_addresses", force: :cascade do |t|
34
43
  t.string "name"
@@ -49,11 +58,11 @@ ActiveRecord::Schema.define(version: 20151118102658) do
49
58
  t.string "status", default: "new"
50
59
  end
51
60
 
52
- add_index "mgca_addresses", ["city_id"], name: "index_mgca_addresses_on_city_id"
53
- add_index "mgca_addresses", ["country_id"], name: "index_mgca_addresses_on_country_id"
54
- add_index "mgca_addresses", ["district_id"], name: "index_mgca_addresses_on_district_id"
55
- add_index "mgca_addresses", ["state_id"], name: "index_mgca_addresses_on_state_id"
56
- add_index "mgca_addresses", ["subdistrict_id"], name: "index_mgca_addresses_on_subdistrict_id"
61
+ add_index "mgca_addresses", ["city_id"], name: "index_mgca_addresses_on_city_id", using: :btree
62
+ add_index "mgca_addresses", ["country_id"], name: "index_mgca_addresses_on_country_id", using: :btree
63
+ add_index "mgca_addresses", ["district_id"], name: "index_mgca_addresses_on_district_id", using: :btree
64
+ add_index "mgca_addresses", ["state_id"], name: "index_mgca_addresses_on_state_id", using: :btree
65
+ add_index "mgca_addresses", ["subdistrict_id"], name: "index_mgca_addresses_on_subdistrict_id", using: :btree
57
66
 
58
67
  create_table "mgca_addressibles", force: :cascade do |t|
59
68
  t.boolean "default"
@@ -61,12 +70,14 @@ ActiveRecord::Schema.define(version: 20151118102658) do
61
70
  t.integer "owner_id"
62
71
  t.string "owner_type"
63
72
  t.integer "address_id"
64
- t.datetime "created_at", null: false
65
- t.datetime "updated_at", null: false
73
+ t.datetime "created_at", null: false
74
+ t.datetime "updated_at", null: false
75
+ t.string "named_address"
66
76
  end
67
77
 
68
- add_index "mgca_addressibles", ["address_id"], name: "index_mgca_addressibles_on_address_id"
69
- add_index "mgca_addressibles", ["owner_type", "owner_id"], name: "index_mgca_addressibles_on_owner_type_and_owner_id"
78
+ add_index "mgca_addressibles", ["address_id"], name: "index_mgca_addressibles_on_address_id", using: :btree
79
+ add_index "mgca_addressibles", ["named_address"], name: "index_mgca_addressibles_on_named_address", using: :btree
80
+ add_index "mgca_addressibles", ["owner_type", "owner_id"], name: "index_mgca_addressibles_on_owner_type_and_owner_id", using: :btree
70
81
 
71
82
  create_table "mgca_cities", force: :cascade do |t|
72
83
  t.string "default_name"
@@ -78,8 +89,8 @@ ActiveRecord::Schema.define(version: 20151118102658) do
78
89
  t.datetime "updated_at"
79
90
  end
80
91
 
81
- add_index "mgca_cities", ["country_id"], name: "index_mgca_cities_on_country_id"
82
- add_index "mgca_cities", ["state_id"], name: "index_mgca_cities_on_state_id"
92
+ add_index "mgca_cities", ["country_id"], name: "index_mgca_cities_on_country_id", using: :btree
93
+ add_index "mgca_cities", ["state_id"], name: "index_mgca_cities_on_state_id", using: :btree
83
94
 
84
95
  create_table "mgca_city_translations", force: :cascade do |t|
85
96
  t.integer "mgca_city_id", null: false
@@ -89,8 +100,8 @@ ActiveRecord::Schema.define(version: 20151118102658) do
89
100
  t.string "name"
90
101
  end
91
102
 
92
- add_index "mgca_city_translations", ["locale"], name: "index_mgca_city_translations_on_locale"
93
- add_index "mgca_city_translations", ["mgca_city_id"], name: "index_mgca_city_translations_on_mgca_city_id"
103
+ add_index "mgca_city_translations", ["locale"], name: "index_mgca_city_translations_on_locale", using: :btree
104
+ add_index "mgca_city_translations", ["mgca_city_id"], name: "index_mgca_city_translations_on_mgca_city_id", using: :btree
94
105
 
95
106
  create_table "mgca_countries", force: :cascade do |t|
96
107
  t.string "default_name"
@@ -109,8 +120,8 @@ ActiveRecord::Schema.define(version: 20151118102658) do
109
120
  t.string "name"
110
121
  end
111
122
 
112
- add_index "mgca_country_translations", ["locale"], name: "index_mgca_country_translations_on_locale"
113
- add_index "mgca_country_translations", ["mgca_country_id"], name: "index_mgca_country_translations_on_mgca_country_id"
123
+ add_index "mgca_country_translations", ["locale"], name: "index_mgca_country_translations_on_locale", using: :btree
124
+ add_index "mgca_country_translations", ["mgca_country_id"], name: "index_mgca_country_translations_on_mgca_country_id", using: :btree
114
125
 
115
126
  create_table "mgca_district_translations", force: :cascade do |t|
116
127
  t.integer "mgca_district_id", null: false
@@ -120,8 +131,8 @@ ActiveRecord::Schema.define(version: 20151118102658) do
120
131
  t.string "name"
121
132
  end
122
133
 
123
- add_index "mgca_district_translations", ["locale"], name: "index_mgca_district_translations_on_locale"
124
- add_index "mgca_district_translations", ["mgca_district_id"], name: "index_mgca_district_translations_on_mgca_district_id"
134
+ add_index "mgca_district_translations", ["locale"], name: "index_mgca_district_translations_on_locale", using: :btree
135
+ add_index "mgca_district_translations", ["mgca_district_id"], name: "index_mgca_district_translations_on_mgca_district_id", using: :btree
125
136
 
126
137
  create_table "mgca_districts", force: :cascade do |t|
127
138
  t.string "default_name"
@@ -132,7 +143,7 @@ ActiveRecord::Schema.define(version: 20151118102658) do
132
143
  t.datetime "updated_at"
133
144
  end
134
145
 
135
- add_index "mgca_districts", ["city_id"], name: "index_mgca_districts_on_city_id"
146
+ add_index "mgca_districts", ["city_id"], name: "index_mgca_districts_on_city_id", using: :btree
136
147
 
137
148
  create_table "mgca_state_translations", force: :cascade do |t|
138
149
  t.integer "mgca_state_id", null: false
@@ -142,8 +153,8 @@ ActiveRecord::Schema.define(version: 20151118102658) do
142
153
  t.string "name"
143
154
  end
144
155
 
145
- add_index "mgca_state_translations", ["locale"], name: "index_mgca_state_translations_on_locale"
146
- add_index "mgca_state_translations", ["mgca_state_id"], name: "index_mgca_state_translations_on_mgca_state_id"
156
+ add_index "mgca_state_translations", ["locale"], name: "index_mgca_state_translations_on_locale", using: :btree
157
+ add_index "mgca_state_translations", ["mgca_state_id"], name: "index_mgca_state_translations_on_mgca_state_id", using: :btree
147
158
 
148
159
  create_table "mgca_states", force: :cascade do |t|
149
160
  t.string "default_name"
@@ -154,7 +165,7 @@ ActiveRecord::Schema.define(version: 20151118102658) do
154
165
  t.datetime "updated_at"
155
166
  end
156
167
 
157
- add_index "mgca_states", ["country_id"], name: "index_mgca_states_on_country_id"
168
+ add_index "mgca_states", ["country_id"], name: "index_mgca_states_on_country_id", using: :btree
158
169
 
159
170
  create_table "mgca_subdistrict_translations", force: :cascade do |t|
160
171
  t.integer "mgca_subdistrict_id", null: false
@@ -164,8 +175,8 @@ ActiveRecord::Schema.define(version: 20151118102658) do
164
175
  t.string "name"
165
176
  end
166
177
 
167
- add_index "mgca_subdistrict_translations", ["locale"], name: "index_mgca_subdistrict_translations_on_locale"
168
- add_index "mgca_subdistrict_translations", ["mgca_subdistrict_id"], name: "index_mgca_subdistrict_translations_on_mgca_subdistrict_id"
178
+ add_index "mgca_subdistrict_translations", ["locale"], name: "index_mgca_subdistrict_translations_on_locale", using: :btree
179
+ add_index "mgca_subdistrict_translations", ["mgca_subdistrict_id"], name: "index_mgca_subdistrict_translations_on_mgca_subdistrict_id", using: :btree
169
180
 
170
181
  create_table "mgca_subdistricts", force: :cascade do |t|
171
182
  t.string "default_name"
@@ -177,8 +188,8 @@ ActiveRecord::Schema.define(version: 20151118102658) do
177
188
  t.datetime "updated_at"
178
189
  end
179
190
 
180
- add_index "mgca_subdistricts", ["city_id"], name: "index_mgca_subdistricts_on_city_id"
181
- add_index "mgca_subdistricts", ["district_id"], name: "index_mgca_subdistricts_on_district_id"
191
+ add_index "mgca_subdistricts", ["city_id"], name: "index_mgca_subdistricts_on_city_id", using: :btree
192
+ add_index "mgca_subdistricts", ["district_id"], name: "index_mgca_subdistricts_on_district_id", using: :btree
182
193
 
183
194
  create_table "users", force: :cascade do |t|
184
195
  t.string "name"
@@ -24471,3 +24471,909 @@ Started GET "/assets/application-19c71fceca706608c55ac5e787d2348a.js?body=1" for
24471
24471
   (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213105831')
24472
24472
   (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150225220219')
24473
24473
   (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151111133333')
24474
+  (12.0ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
24475
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
24476
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
24477
+ Migrating to CreateUsers (20150213105831)
24478
+  (0.1ms) BEGIN
24479
+  (11.0ms) CREATE TABLE "users" ("id" serial primary key, "name" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
24480
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150213105831"]]
24481
+  (0.4ms) COMMIT
24482
+ Migrating to AddMagicAddresses (20150225220219)
24483
+  (0.3ms) BEGIN
24484
+  (2.7ms) CREATE TABLE "mgca_addresses" ("id" serial primary key, "name" character varying, "fetch_address" text, "street_default" character varying, "street_number" character varying, "street_additional" character varying, "zipcode" integer, "default" boolean, "longitude" float, "latitude" float, "subdistrict_id" integer, "district_id" integer, "city_id" integer, "state_id" integer, "country_id" integer, "owner_id" integer, "owner_type" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
24485
+  (0.6ms) CREATE INDEX "index_mgca_addresses_on_subdistrict_id" ON "mgca_addresses" ("subdistrict_id")
24486
+  (0.6ms) CREATE INDEX "index_mgca_addresses_on_district_id" ON "mgca_addresses" ("district_id")
24487
+  (0.6ms) CREATE INDEX "index_mgca_addresses_on_city_id" ON "mgca_addresses" ("city_id")
24488
+  (0.8ms) CREATE INDEX "index_mgca_addresses_on_state_id" ON "mgca_addresses" ("state_id")
24489
+  (0.7ms) CREATE INDEX "index_mgca_addresses_on_country_id" ON "mgca_addresses" ("country_id")
24490
+  (0.6ms) CREATE INDEX "index_mgca_addresses_on_owner_type_and_owner_id" ON "mgca_addresses" ("owner_type", "owner_id")
24491
+  (2.6ms) CREATE TABLE "mgca_address_translations" ("id" serial primary key, "mgca_address_id" integer NOT NULL, "locale" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
24492
+  (0.2ms) ALTER TABLE "mgca_address_translations" ADD "street_name" character varying
24493
+  (0.7ms) CREATE INDEX "index_mgca_address_translations_on_mgca_address_id" ON "mgca_address_translations" ("mgca_address_id")
24494
+  (0.8ms) CREATE INDEX "index_mgca_address_translations_on_locale" ON "mgca_address_translations" ("locale")
24495
+ DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in up at /Users/austin/Sites/berlinmagic/magic_addresses/spec/dummy/db/migrate/20150225220219_add_magic_addresses.rb:66)
24496
+  (2.4ms) CREATE TABLE "mgca_countries" ("id" serial primary key, "default_name" character varying, "iso_code" character varying(2), "dial_code" character varying, "fsm_state" character varying DEFAULT 'new', "created_at" timestamp, "updated_at" timestamp)
24497
+  (2.6ms) CREATE TABLE "mgca_country_translations" ("id" serial primary key, "mgca_country_id" integer NOT NULL, "locale" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
24498
+  (0.2ms) ALTER TABLE "mgca_country_translations" ADD "name" character varying
24499
+  (0.6ms) CREATE INDEX "index_mgca_country_translations_on_mgca_country_id" ON "mgca_country_translations" ("mgca_country_id")
24500
+  (0.7ms) CREATE INDEX "index_mgca_country_translations_on_locale" ON "mgca_country_translations" ("locale")
24501
+ SQL (0.4ms) INSERT INTO "mgca_countries" ("dial_code", "default_name", "iso_code", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["dial_code", "+43"], ["default_name", "Austria"], ["iso_code", "AT"], ["created_at", "2016-10-13 08:37:22.546395"], ["updated_at", "2016-10-13 08:37:22.546395"]]
24502
+ SQL (0.5ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "cs"], ["name", "Rakousko"], ["mgca_country_id", 1], ["created_at", "2016-10-13 08:37:22.552771"], ["updated_at", "2016-10-13 08:37:22.552771"]]
24503
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "de"], ["name", "Österreich"], ["mgca_country_id", 1], ["created_at", "2016-10-13 08:37:22.554786"], ["updated_at", "2016-10-13 08:37:22.554786"]]
24504
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "en"], ["name", "Austria"], ["mgca_country_id", 1], ["created_at", "2016-10-13 08:37:22.555903"], ["updated_at", "2016-10-13 08:37:22.555903"]]
24505
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "es"], ["name", "Austria"], ["mgca_country_id", 1], ["created_at", "2016-10-13 08:37:22.557366"], ["updated_at", "2016-10-13 08:37:22.557366"]]
24506
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "fr"], ["name", "Autriche"], ["mgca_country_id", 1], ["created_at", "2016-10-13 08:37:22.558441"], ["updated_at", "2016-10-13 08:37:22.558441"]]
24507
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "it"], ["name", "Austria"], ["mgca_country_id", 1], ["created_at", "2016-10-13 08:37:22.559631"], ["updated_at", "2016-10-13 08:37:22.559631"]]
24508
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "pl"], ["name", "Austria"], ["mgca_country_id", 1], ["created_at", "2016-10-13 08:37:22.560802"], ["updated_at", "2016-10-13 08:37:22.560802"]]
24509
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "ru"], ["name", "Австрия"], ["mgca_country_id", 1], ["created_at", "2016-10-13 08:37:22.561851"], ["updated_at", "2016-10-13 08:37:22.561851"]]
24510
+ SQL (0.3ms) INSERT INTO "mgca_countries" ("dial_code", "default_name", "iso_code", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["dial_code", "+375"], ["default_name", "Belarus"], ["iso_code", "BY"], ["created_at", "2016-10-13 08:37:22.575667"], ["updated_at", "2016-10-13 08:37:22.575667"]]
24511
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "cs"], ["name", "Bělorusko"], ["mgca_country_id", 2], ["created_at", "2016-10-13 08:37:22.577060"], ["updated_at", "2016-10-13 08:37:22.577060"]]
24512
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "de"], ["name", "Weißrussland"], ["mgca_country_id", 2], ["created_at", "2016-10-13 08:37:22.578088"], ["updated_at", "2016-10-13 08:37:22.578088"]]
24513
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "en"], ["name", "Belarus"], ["mgca_country_id", 2], ["created_at", "2016-10-13 08:37:22.579056"], ["updated_at", "2016-10-13 08:37:22.579056"]]
24514
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "es"], ["name", "Bielorrusia"], ["mgca_country_id", 2], ["created_at", "2016-10-13 08:37:22.579981"], ["updated_at", "2016-10-13 08:37:22.579981"]]
24515
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "fr"], ["name", "Bélarus"], ["mgca_country_id", 2], ["created_at", "2016-10-13 08:37:22.580964"], ["updated_at", "2016-10-13 08:37:22.580964"]]
24516
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "it"], ["name", "Bielorussia"], ["mgca_country_id", 2], ["created_at", "2016-10-13 08:37:22.581962"], ["updated_at", "2016-10-13 08:37:22.581962"]]
24517
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "pl"], ["name", "Białoruś"], ["mgca_country_id", 2], ["created_at", "2016-10-13 08:37:22.582971"], ["updated_at", "2016-10-13 08:37:22.582971"]]
24518
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "ru"], ["name", "Беларусь"], ["mgca_country_id", 2], ["created_at", "2016-10-13 08:37:22.583930"], ["updated_at", "2016-10-13 08:37:22.583930"]]
24519
+ SQL (0.2ms) INSERT INTO "mgca_countries" ("dial_code", "default_name", "iso_code", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["dial_code", "+32"], ["default_name", "Belgium"], ["iso_code", "BE"], ["created_at", "2016-10-13 08:37:22.588306"], ["updated_at", "2016-10-13 08:37:22.588306"]]
24520
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "cs"], ["name", "Belgie"], ["mgca_country_id", 3], ["created_at", "2016-10-13 08:37:22.589401"], ["updated_at", "2016-10-13 08:37:22.589401"]]
24521
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "de"], ["name", "Belgien"], ["mgca_country_id", 3], ["created_at", "2016-10-13 08:37:22.590401"], ["updated_at", "2016-10-13 08:37:22.590401"]]
24522
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "en"], ["name", "Belgium"], ["mgca_country_id", 3], ["created_at", "2016-10-13 08:37:22.591356"], ["updated_at", "2016-10-13 08:37:22.591356"]]
24523
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "es"], ["name", "Bélgica"], ["mgca_country_id", 3], ["created_at", "2016-10-13 08:37:22.592295"], ["updated_at", "2016-10-13 08:37:22.592295"]]
24524
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "fr"], ["name", "Belgique"], ["mgca_country_id", 3], ["created_at", "2016-10-13 08:37:22.593256"], ["updated_at", "2016-10-13 08:37:22.593256"]]
24525
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "it"], ["name", "Belgio"], ["mgca_country_id", 3], ["created_at", "2016-10-13 08:37:22.594259"], ["updated_at", "2016-10-13 08:37:22.594259"]]
24526
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "pl"], ["name", "Belgia"], ["mgca_country_id", 3], ["created_at", "2016-10-13 08:37:22.595180"], ["updated_at", "2016-10-13 08:37:22.595180"]]
24527
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "ru"], ["name", "Бельгия"], ["mgca_country_id", 3], ["created_at", "2016-10-13 08:37:22.596091"], ["updated_at", "2016-10-13 08:37:22.596091"]]
24528
+ SQL (0.3ms) INSERT INTO "mgca_countries" ("dial_code", "default_name", "iso_code", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["dial_code", "+387"], ["default_name", "Bosnia and Herzegovina"], ["iso_code", "BA"], ["created_at", "2016-10-13 08:37:22.600677"], ["updated_at", "2016-10-13 08:37:22.600677"]]
24529
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "cs"], ["name", "Bosna a Hercegovina"], ["mgca_country_id", 4], ["created_at", "2016-10-13 08:37:22.601912"], ["updated_at", "2016-10-13 08:37:22.601912"]]
24530
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "de"], ["name", "Bosnien und Herzegowina"], ["mgca_country_id", 4], ["created_at", "2016-10-13 08:37:22.602904"], ["updated_at", "2016-10-13 08:37:22.602904"]]
24531
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "en"], ["name", "Bosnia and Herzegovina"], ["mgca_country_id", 4], ["created_at", "2016-10-13 08:37:22.603818"], ["updated_at", "2016-10-13 08:37:22.603818"]]
24532
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "es"], ["name", "Bosnia y Herzegovina"], ["mgca_country_id", 4], ["created_at", "2016-10-13 08:37:22.604724"], ["updated_at", "2016-10-13 08:37:22.604724"]]
24533
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "fr"], ["name", "Bosnie-Herzégovine"], ["mgca_country_id", 4], ["created_at", "2016-10-13 08:37:22.605626"], ["updated_at", "2016-10-13 08:37:22.605626"]]
24534
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "it"], ["name", "Bosnia-Erzegovina"], ["mgca_country_id", 4], ["created_at", "2016-10-13 08:37:22.606534"], ["updated_at", "2016-10-13 08:37:22.606534"]]
24535
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "pl"], ["name", "Bośnia i Hercegowina"], ["mgca_country_id", 4], ["created_at", "2016-10-13 08:37:22.607424"], ["updated_at", "2016-10-13 08:37:22.607424"]]
24536
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "ru"], ["name", "Босния и Герцеговина"], ["mgca_country_id", 4], ["created_at", "2016-10-13 08:37:22.608367"], ["updated_at", "2016-10-13 08:37:22.608367"]]
24537
+ SQL (0.3ms) INSERT INTO "mgca_countries" ("dial_code", "default_name", "iso_code", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["dial_code", "+359"], ["default_name", "Bulgaria"], ["iso_code", "BG"], ["created_at", "2016-10-13 08:37:22.612839"], ["updated_at", "2016-10-13 08:37:22.612839"]]
24538
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "cs"], ["name", "Bulharsko"], ["mgca_country_id", 5], ["created_at", "2016-10-13 08:37:22.614347"], ["updated_at", "2016-10-13 08:37:22.614347"]]
24539
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "de"], ["name", "Bulgarien"], ["mgca_country_id", 5], ["created_at", "2016-10-13 08:37:22.615498"], ["updated_at", "2016-10-13 08:37:22.615498"]]
24540
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "en"], ["name", "Bulgaria"], ["mgca_country_id", 5], ["created_at", "2016-10-13 08:37:22.616530"], ["updated_at", "2016-10-13 08:37:22.616530"]]
24541
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "es"], ["name", "Bulgaria"], ["mgca_country_id", 5], ["created_at", "2016-10-13 08:37:22.617467"], ["updated_at", "2016-10-13 08:37:22.617467"]]
24542
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "fr"], ["name", "Bulgarie"], ["mgca_country_id", 5], ["created_at", "2016-10-13 08:37:22.618645"], ["updated_at", "2016-10-13 08:37:22.618645"]]
24543
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "it"], ["name", "Bulgaria"], ["mgca_country_id", 5], ["created_at", "2016-10-13 08:37:22.619631"], ["updated_at", "2016-10-13 08:37:22.619631"]]
24544
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "pl"], ["name", "Bułgaria"], ["mgca_country_id", 5], ["created_at", "2016-10-13 08:37:22.620620"], ["updated_at", "2016-10-13 08:37:22.620620"]]
24545
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "ru"], ["name", "Болгария"], ["mgca_country_id", 5], ["created_at", "2016-10-13 08:37:22.621628"], ["updated_at", "2016-10-13 08:37:22.621628"]]
24546
+ SQL (0.3ms) INSERT INTO "mgca_countries" ("dial_code", "default_name", "iso_code", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["dial_code", "+1"], ["default_name", "Canada"], ["iso_code", "CA"], ["created_at", "2016-10-13 08:37:22.626384"], ["updated_at", "2016-10-13 08:37:22.626384"]]
24547
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "cs"], ["name", "Kanada"], ["mgca_country_id", 6], ["created_at", "2016-10-13 08:37:22.627788"], ["updated_at", "2016-10-13 08:37:22.627788"]]
24548
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "de"], ["name", "Kanada"], ["mgca_country_id", 6], ["created_at", "2016-10-13 08:37:22.628822"], ["updated_at", "2016-10-13 08:37:22.628822"]]
24549
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "en"], ["name", "Canada"], ["mgca_country_id", 6], ["created_at", "2016-10-13 08:37:22.629774"], ["updated_at", "2016-10-13 08:37:22.629774"]]
24550
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "es"], ["name", "Canadá"], ["mgca_country_id", 6], ["created_at", "2016-10-13 08:37:22.630755"], ["updated_at", "2016-10-13 08:37:22.630755"]]
24551
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "fr"], ["name", "Canada"], ["mgca_country_id", 6], ["created_at", "2016-10-13 08:37:22.631659"], ["updated_at", "2016-10-13 08:37:22.631659"]]
24552
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "it"], ["name", "Canada"], ["mgca_country_id", 6], ["created_at", "2016-10-13 08:37:22.632593"], ["updated_at", "2016-10-13 08:37:22.632593"]]
24553
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "pl"], ["name", "Kanada"], ["mgca_country_id", 6], ["created_at", "2016-10-13 08:37:22.633539"], ["updated_at", "2016-10-13 08:37:22.633539"]]
24554
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "ru"], ["name", "Канада"], ["mgca_country_id", 6], ["created_at", "2016-10-13 08:37:22.634494"], ["updated_at", "2016-10-13 08:37:22.634494"]]
24555
+ SQL (0.2ms) INSERT INTO "mgca_countries" ("dial_code", "default_name", "iso_code", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["dial_code", "+385"], ["default_name", "Croatia"], ["iso_code", "HR"], ["created_at", "2016-10-13 08:37:22.638820"], ["updated_at", "2016-10-13 08:37:22.638820"]]
24556
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "cs"], ["name", "Chorvatsko"], ["mgca_country_id", 7], ["created_at", "2016-10-13 08:37:22.639931"], ["updated_at", "2016-10-13 08:37:22.639931"]]
24557
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "de"], ["name", "Kroatien"], ["mgca_country_id", 7], ["created_at", "2016-10-13 08:37:22.640943"], ["updated_at", "2016-10-13 08:37:22.640943"]]
24558
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "en"], ["name", "Croatia"], ["mgca_country_id", 7], ["created_at", "2016-10-13 08:37:22.641943"], ["updated_at", "2016-10-13 08:37:22.641943"]]
24559
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "es"], ["name", "Croacia"], ["mgca_country_id", 7], ["created_at", "2016-10-13 08:37:22.642980"], ["updated_at", "2016-10-13 08:37:22.642980"]]
24560
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "fr"], ["name", "Croatie"], ["mgca_country_id", 7], ["created_at", "2016-10-13 08:37:22.644061"], ["updated_at", "2016-10-13 08:37:22.644061"]]
24561
+ SQL (0.1ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "it"], ["name", "Croazia"], ["mgca_country_id", 7], ["created_at", "2016-10-13 08:37:22.645021"], ["updated_at", "2016-10-13 08:37:22.645021"]]
24562
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "pl"], ["name", "Chorwacja"], ["mgca_country_id", 7], ["created_at", "2016-10-13 08:37:22.645946"], ["updated_at", "2016-10-13 08:37:22.645946"]]
24563
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "ru"], ["name", "Хорватия"], ["mgca_country_id", 7], ["created_at", "2016-10-13 08:37:22.646916"], ["updated_at", "2016-10-13 08:37:22.646916"]]
24564
+ SQL (0.3ms) INSERT INTO "mgca_countries" ("dial_code", "default_name", "iso_code", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["dial_code", "+357"], ["default_name", "Cyprus"], ["iso_code", "CY"], ["created_at", "2016-10-13 08:37:22.651564"], ["updated_at", "2016-10-13 08:37:22.651564"]]
24565
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "cs"], ["name", "Kypr"], ["mgca_country_id", 8], ["created_at", "2016-10-13 08:37:22.652745"], ["updated_at", "2016-10-13 08:37:22.652745"]]
24566
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "de"], ["name", "Zypern"], ["mgca_country_id", 8], ["created_at", "2016-10-13 08:37:22.653704"], ["updated_at", "2016-10-13 08:37:22.653704"]]
24567
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "en"], ["name", "Cyprus"], ["mgca_country_id", 8], ["created_at", "2016-10-13 08:37:22.654627"], ["updated_at", "2016-10-13 08:37:22.654627"]]
24568
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "es"], ["name", "Chipre"], ["mgca_country_id", 8], ["created_at", "2016-10-13 08:37:22.655535"], ["updated_at", "2016-10-13 08:37:22.655535"]]
24569
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "fr"], ["name", "Chypre"], ["mgca_country_id", 8], ["created_at", "2016-10-13 08:37:22.656427"], ["updated_at", "2016-10-13 08:37:22.656427"]]
24570
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "it"], ["name", "Cipro"], ["mgca_country_id", 8], ["created_at", "2016-10-13 08:37:22.657309"], ["updated_at", "2016-10-13 08:37:22.657309"]]
24571
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "pl"], ["name", "Cypr"], ["mgca_country_id", 8], ["created_at", "2016-10-13 08:37:22.658236"], ["updated_at", "2016-10-13 08:37:22.658236"]]
24572
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "ru"], ["name", "Кипр"], ["mgca_country_id", 8], ["created_at", "2016-10-13 08:37:22.659185"], ["updated_at", "2016-10-13 08:37:22.659185"]]
24573
+ SQL (0.2ms) INSERT INTO "mgca_countries" ("dial_code", "default_name", "iso_code", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["dial_code", "+420"], ["default_name", "Czech Republic"], ["iso_code", "CZ"], ["created_at", "2016-10-13 08:37:22.663472"], ["updated_at", "2016-10-13 08:37:22.663472"]]
24574
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "cs"], ["name", "Česká republika"], ["mgca_country_id", 9], ["created_at", "2016-10-13 08:37:22.664522"], ["updated_at", "2016-10-13 08:37:22.664522"]]
24575
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "de"], ["name", "Tschechische Republik"], ["mgca_country_id", 9], ["created_at", "2016-10-13 08:37:22.665506"], ["updated_at", "2016-10-13 08:37:22.665506"]]
24576
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "en"], ["name", "Czech Republic"], ["mgca_country_id", 9], ["created_at", "2016-10-13 08:37:22.666444"], ["updated_at", "2016-10-13 08:37:22.666444"]]
24577
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "es"], ["name", "República Checa"], ["mgca_country_id", 9], ["created_at", "2016-10-13 08:37:22.667404"], ["updated_at", "2016-10-13 08:37:22.667404"]]
24578
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "fr"], ["name", "Tchèque, République"], ["mgca_country_id", 9], ["created_at", "2016-10-13 08:37:22.668338"], ["updated_at", "2016-10-13 08:37:22.668338"]]
24579
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "it"], ["name", "Repubblica Ceca"], ["mgca_country_id", 9], ["created_at", "2016-10-13 08:37:22.669308"], ["updated_at", "2016-10-13 08:37:22.669308"]]
24580
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "pl"], ["name", "Czechy"], ["mgca_country_id", 9], ["created_at", "2016-10-13 08:37:22.670278"], ["updated_at", "2016-10-13 08:37:22.670278"]]
24581
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "ru"], ["name", "Чешская Республика"], ["mgca_country_id", 9], ["created_at", "2016-10-13 08:37:22.671193"], ["updated_at", "2016-10-13 08:37:22.671193"]]
24582
+ SQL (0.2ms) INSERT INTO "mgca_countries" ("dial_code", "default_name", "iso_code", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["dial_code", "+45"], ["default_name", "Denmark"], ["iso_code", "DK"], ["created_at", "2016-10-13 08:37:22.675982"], ["updated_at", "2016-10-13 08:37:22.675982"]]
24583
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "cs"], ["name", "Dánsko"], ["mgca_country_id", 10], ["created_at", "2016-10-13 08:37:22.677296"], ["updated_at", "2016-10-13 08:37:22.677296"]]
24584
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "de"], ["name", "Dänemark"], ["mgca_country_id", 10], ["created_at", "2016-10-13 08:37:22.678315"], ["updated_at", "2016-10-13 08:37:22.678315"]]
24585
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "en"], ["name", "Denmark"], ["mgca_country_id", 10], ["created_at", "2016-10-13 08:37:22.679259"], ["updated_at", "2016-10-13 08:37:22.679259"]]
24586
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "es"], ["name", "Dinamarca"], ["mgca_country_id", 10], ["created_at", "2016-10-13 08:37:22.680246"], ["updated_at", "2016-10-13 08:37:22.680246"]]
24587
+ SQL (0.1ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "fr"], ["name", "Danemark"], ["mgca_country_id", 10], ["created_at", "2016-10-13 08:37:22.681170"], ["updated_at", "2016-10-13 08:37:22.681170"]]
24588
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "it"], ["name", "Danimarca"], ["mgca_country_id", 10], ["created_at", "2016-10-13 08:37:22.682055"], ["updated_at", "2016-10-13 08:37:22.682055"]]
24589
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "pl"], ["name", "Dania"], ["mgca_country_id", 10], ["created_at", "2016-10-13 08:37:22.683008"], ["updated_at", "2016-10-13 08:37:22.683008"]]
24590
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "ru"], ["name", "Дания"], ["mgca_country_id", 10], ["created_at", "2016-10-13 08:37:22.684102"], ["updated_at", "2016-10-13 08:37:22.684102"]]
24591
+ SQL (0.2ms) INSERT INTO "mgca_countries" ("dial_code", "default_name", "iso_code", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["dial_code", "+358"], ["default_name", "Finland"], ["iso_code", "FI"], ["created_at", "2016-10-13 08:37:22.688639"], ["updated_at", "2016-10-13 08:37:22.688639"]]
24592
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "cs"], ["name", "Finsko"], ["mgca_country_id", 11], ["created_at", "2016-10-13 08:37:22.689681"], ["updated_at", "2016-10-13 08:37:22.689681"]]
24593
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "de"], ["name", "Finnland"], ["mgca_country_id", 11], ["created_at", "2016-10-13 08:37:22.690665"], ["updated_at", "2016-10-13 08:37:22.690665"]]
24594
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "en"], ["name", "Finland"], ["mgca_country_id", 11], ["created_at", "2016-10-13 08:37:22.691642"], ["updated_at", "2016-10-13 08:37:22.691642"]]
24595
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "es"], ["name", "Finlandia"], ["mgca_country_id", 11], ["created_at", "2016-10-13 08:37:22.692671"], ["updated_at", "2016-10-13 08:37:22.692671"]]
24596
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "fr"], ["name", "Finlande"], ["mgca_country_id", 11], ["created_at", "2016-10-13 08:37:22.693643"], ["updated_at", "2016-10-13 08:37:22.693643"]]
24597
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "it"], ["name", "Finlandia"], ["mgca_country_id", 11], ["created_at", "2016-10-13 08:37:22.694578"], ["updated_at", "2016-10-13 08:37:22.694578"]]
24598
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "pl"], ["name", "Finlandia"], ["mgca_country_id", 11], ["created_at", "2016-10-13 08:37:22.695482"], ["updated_at", "2016-10-13 08:37:22.695482"]]
24599
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "ru"], ["name", "Финляндия"], ["mgca_country_id", 11], ["created_at", "2016-10-13 08:37:22.696442"], ["updated_at", "2016-10-13 08:37:22.696442"]]
24600
+ SQL (0.2ms) INSERT INTO "mgca_countries" ("dial_code", "default_name", "iso_code", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["dial_code", "+33"], ["default_name", "France"], ["iso_code", "FR"], ["created_at", "2016-10-13 08:37:22.701229"], ["updated_at", "2016-10-13 08:37:22.701229"]]
24601
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "cs"], ["name", "Francie"], ["mgca_country_id", 12], ["created_at", "2016-10-13 08:37:22.702483"], ["updated_at", "2016-10-13 08:37:22.702483"]]
24602
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "de"], ["name", "Frankreich"], ["mgca_country_id", 12], ["created_at", "2016-10-13 08:37:22.703480"], ["updated_at", "2016-10-13 08:37:22.703480"]]
24603
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "en"], ["name", "France"], ["mgca_country_id", 12], ["created_at", "2016-10-13 08:37:22.704405"], ["updated_at", "2016-10-13 08:37:22.704405"]]
24604
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "es"], ["name", "Francia"], ["mgca_country_id", 12], ["created_at", "2016-10-13 08:37:22.705346"], ["updated_at", "2016-10-13 08:37:22.705346"]]
24605
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "fr"], ["name", "France"], ["mgca_country_id", 12], ["created_at", "2016-10-13 08:37:22.706247"], ["updated_at", "2016-10-13 08:37:22.706247"]]
24606
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "it"], ["name", "Francia"], ["mgca_country_id", 12], ["created_at", "2016-10-13 08:37:22.707124"], ["updated_at", "2016-10-13 08:37:22.707124"]]
24607
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "pl"], ["name", "Francja"], ["mgca_country_id", 12], ["created_at", "2016-10-13 08:37:22.708013"], ["updated_at", "2016-10-13 08:37:22.708013"]]
24608
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "ru"], ["name", "Франция"], ["mgca_country_id", 12], ["created_at", "2016-10-13 08:37:22.708930"], ["updated_at", "2016-10-13 08:37:22.708930"]]
24609
+ SQL (0.2ms) INSERT INTO "mgca_countries" ("dial_code", "default_name", "iso_code", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["dial_code", "+49"], ["default_name", "Germany"], ["iso_code", "DE"], ["created_at", "2016-10-13 08:37:22.712986"], ["updated_at", "2016-10-13 08:37:22.712986"]]
24610
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "cs"], ["name", "Německo"], ["mgca_country_id", 13], ["created_at", "2016-10-13 08:37:22.713972"], ["updated_at", "2016-10-13 08:37:22.713972"]]
24611
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "de"], ["name", "Deutschland"], ["mgca_country_id", 13], ["created_at", "2016-10-13 08:37:22.714936"], ["updated_at", "2016-10-13 08:37:22.714936"]]
24612
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "en"], ["name", "Germany"], ["mgca_country_id", 13], ["created_at", "2016-10-13 08:37:22.715848"], ["updated_at", "2016-10-13 08:37:22.715848"]]
24613
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "es"], ["name", "Alemania"], ["mgca_country_id", 13], ["created_at", "2016-10-13 08:37:22.716766"], ["updated_at", "2016-10-13 08:37:22.716766"]]
24614
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "fr"], ["name", "Allemagne"], ["mgca_country_id", 13], ["created_at", "2016-10-13 08:37:22.717668"], ["updated_at", "2016-10-13 08:37:22.717668"]]
24615
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "it"], ["name", "Germania"], ["mgca_country_id", 13], ["created_at", "2016-10-13 08:37:22.718603"], ["updated_at", "2016-10-13 08:37:22.718603"]]
24616
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "pl"], ["name", "Niemcy"], ["mgca_country_id", 13], ["created_at", "2016-10-13 08:37:22.719541"], ["updated_at", "2016-10-13 08:37:22.719541"]]
24617
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "ru"], ["name", "Германия"], ["mgca_country_id", 13], ["created_at", "2016-10-13 08:37:22.720501"], ["updated_at", "2016-10-13 08:37:22.720501"]]
24618
+ SQL (0.3ms) INSERT INTO "mgca_countries" ("dial_code", "default_name", "iso_code", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["dial_code", "+30"], ["default_name", "Greece"], ["iso_code", "GR"], ["created_at", "2016-10-13 08:37:22.724842"], ["updated_at", "2016-10-13 08:37:22.724842"]]
24619
+ SQL (0.3ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "cs"], ["name", "Řecko"], ["mgca_country_id", 14], ["created_at", "2016-10-13 08:37:22.726051"], ["updated_at", "2016-10-13 08:37:22.726051"]]
24620
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "de"], ["name", "Griechenland"], ["mgca_country_id", 14], ["created_at", "2016-10-13 08:37:22.727304"], ["updated_at", "2016-10-13 08:37:22.727304"]]
24621
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "en"], ["name", "Greece"], ["mgca_country_id", 14], ["created_at", "2016-10-13 08:37:22.728420"], ["updated_at", "2016-10-13 08:37:22.728420"]]
24622
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "es"], ["name", "Grecia"], ["mgca_country_id", 14], ["created_at", "2016-10-13 08:37:22.729374"], ["updated_at", "2016-10-13 08:37:22.729374"]]
24623
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "fr"], ["name", "Grèce"], ["mgca_country_id", 14], ["created_at", "2016-10-13 08:37:22.730301"], ["updated_at", "2016-10-13 08:37:22.730301"]]
24624
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "it"], ["name", "Grecia"], ["mgca_country_id", 14], ["created_at", "2016-10-13 08:37:22.731318"], ["updated_at", "2016-10-13 08:37:22.731318"]]
24625
+ SQL (0.5ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "pl"], ["name", "Grecja"], ["mgca_country_id", 14], ["created_at", "2016-10-13 08:37:22.732393"], ["updated_at", "2016-10-13 08:37:22.732393"]]
24626
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "ru"], ["name", "Греция"], ["mgca_country_id", 14], ["created_at", "2016-10-13 08:37:22.733649"], ["updated_at", "2016-10-13 08:37:22.733649"]]
24627
+ SQL (0.2ms) INSERT INTO "mgca_countries" ("dial_code", "default_name", "iso_code", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["dial_code", "+36"], ["default_name", "Hungary"], ["iso_code", "HU"], ["created_at", "2016-10-13 08:37:22.738104"], ["updated_at", "2016-10-13 08:37:22.738104"]]
24628
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "cs"], ["name", "Maďarsko"], ["mgca_country_id", 15], ["created_at", "2016-10-13 08:37:22.739262"], ["updated_at", "2016-10-13 08:37:22.739262"]]
24629
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "de"], ["name", "Ungarn"], ["mgca_country_id", 15], ["created_at", "2016-10-13 08:37:22.740254"], ["updated_at", "2016-10-13 08:37:22.740254"]]
24630
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "en"], ["name", "Hungary"], ["mgca_country_id", 15], ["created_at", "2016-10-13 08:37:22.741208"], ["updated_at", "2016-10-13 08:37:22.741208"]]
24631
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "es"], ["name", "Hungría"], ["mgca_country_id", 15], ["created_at", "2016-10-13 08:37:22.742100"], ["updated_at", "2016-10-13 08:37:22.742100"]]
24632
+ SQL (0.3ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "fr"], ["name", "Hongrie"], ["mgca_country_id", 15], ["created_at", "2016-10-13 08:37:22.743019"], ["updated_at", "2016-10-13 08:37:22.743019"]]
24633
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "it"], ["name", "Ungheria"], ["mgca_country_id", 15], ["created_at", "2016-10-13 08:37:22.744331"], ["updated_at", "2016-10-13 08:37:22.744331"]]
24634
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "pl"], ["name", "Węgry"], ["mgca_country_id", 15], ["created_at", "2016-10-13 08:37:22.745596"], ["updated_at", "2016-10-13 08:37:22.745596"]]
24635
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "ru"], ["name", "Венгрия"], ["mgca_country_id", 15], ["created_at", "2016-10-13 08:37:22.746621"], ["updated_at", "2016-10-13 08:37:22.746621"]]
24636
+ SQL (0.2ms) INSERT INTO "mgca_countries" ("dial_code", "default_name", "iso_code", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["dial_code", "+353"], ["default_name", "Ireland"], ["iso_code", "IE"], ["created_at", "2016-10-13 08:37:22.751167"], ["updated_at", "2016-10-13 08:37:22.751167"]]
24637
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "cs"], ["name", "Irsko"], ["mgca_country_id", 16], ["created_at", "2016-10-13 08:37:22.752369"], ["updated_at", "2016-10-13 08:37:22.752369"]]
24638
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "de"], ["name", "Irland"], ["mgca_country_id", 16], ["created_at", "2016-10-13 08:37:22.753332"], ["updated_at", "2016-10-13 08:37:22.753332"]]
24639
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "en"], ["name", "Ireland"], ["mgca_country_id", 16], ["created_at", "2016-10-13 08:37:22.754233"], ["updated_at", "2016-10-13 08:37:22.754233"]]
24640
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "es"], ["name", "Irlanda"], ["mgca_country_id", 16], ["created_at", "2016-10-13 08:37:22.755107"], ["updated_at", "2016-10-13 08:37:22.755107"]]
24641
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "fr"], ["name", "Irlande"], ["mgca_country_id", 16], ["created_at", "2016-10-13 08:37:22.756048"], ["updated_at", "2016-10-13 08:37:22.756048"]]
24642
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "it"], ["name", "Irlanda"], ["mgca_country_id", 16], ["created_at", "2016-10-13 08:37:22.756929"], ["updated_at", "2016-10-13 08:37:22.756929"]]
24643
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "pl"], ["name", "Irlandia"], ["mgca_country_id", 16], ["created_at", "2016-10-13 08:37:22.757812"], ["updated_at", "2016-10-13 08:37:22.757812"]]
24644
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "ru"], ["name", "Ирландия"], ["mgca_country_id", 16], ["created_at", "2016-10-13 08:37:22.758698"], ["updated_at", "2016-10-13 08:37:22.758698"]]
24645
+ SQL (0.2ms) INSERT INTO "mgca_countries" ("dial_code", "default_name", "iso_code", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["dial_code", "+39"], ["default_name", "Italy"], ["iso_code", "IT"], ["created_at", "2016-10-13 08:37:22.762910"], ["updated_at", "2016-10-13 08:37:22.762910"]]
24646
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "cs"], ["name", "Itálie"], ["mgca_country_id", 17], ["created_at", "2016-10-13 08:37:22.763968"], ["updated_at", "2016-10-13 08:37:22.763968"]]
24647
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "de"], ["name", "Italien"], ["mgca_country_id", 17], ["created_at", "2016-10-13 08:37:22.764924"], ["updated_at", "2016-10-13 08:37:22.764924"]]
24648
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "en"], ["name", "Italy"], ["mgca_country_id", 17], ["created_at", "2016-10-13 08:37:22.765936"], ["updated_at", "2016-10-13 08:37:22.765936"]]
24649
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "es"], ["name", "Italia"], ["mgca_country_id", 17], ["created_at", "2016-10-13 08:37:22.766868"], ["updated_at", "2016-10-13 08:37:22.766868"]]
24650
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "fr"], ["name", "Italie"], ["mgca_country_id", 17], ["created_at", "2016-10-13 08:37:22.767783"], ["updated_at", "2016-10-13 08:37:22.767783"]]
24651
+ SQL (0.3ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "it"], ["name", "Italia"], ["mgca_country_id", 17], ["created_at", "2016-10-13 08:37:22.768794"], ["updated_at", "2016-10-13 08:37:22.768794"]]
24652
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "pl"], ["name", "Włochy"], ["mgca_country_id", 17], ["created_at", "2016-10-13 08:37:22.770157"], ["updated_at", "2016-10-13 08:37:22.770157"]]
24653
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "ru"], ["name", "Италия"], ["mgca_country_id", 17], ["created_at", "2016-10-13 08:37:22.771171"], ["updated_at", "2016-10-13 08:37:22.771171"]]
24654
+ SQL (0.2ms) INSERT INTO "mgca_countries" ("dial_code", "default_name", "iso_code", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["dial_code", "+371"], ["default_name", "Latvia"], ["iso_code", "LV"], ["created_at", "2016-10-13 08:37:22.776545"], ["updated_at", "2016-10-13 08:37:22.776545"]]
24655
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "cs"], ["name", "Lotyšsko"], ["mgca_country_id", 18], ["created_at", "2016-10-13 08:37:22.777716"], ["updated_at", "2016-10-13 08:37:22.777716"]]
24656
+ SQL (0.4ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "de"], ["name", "Lettland"], ["mgca_country_id", 18], ["created_at", "2016-10-13 08:37:22.778734"], ["updated_at", "2016-10-13 08:37:22.778734"]]
24657
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "en"], ["name", "Latvia"], ["mgca_country_id", 18], ["created_at", "2016-10-13 08:37:22.780007"], ["updated_at", "2016-10-13 08:37:22.780007"]]
24658
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "es"], ["name", "Letonia"], ["mgca_country_id", 18], ["created_at", "2016-10-13 08:37:22.781028"], ["updated_at", "2016-10-13 08:37:22.781028"]]
24659
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "fr"], ["name", "Lettonie"], ["mgca_country_id", 18], ["created_at", "2016-10-13 08:37:22.781915"], ["updated_at", "2016-10-13 08:37:22.781915"]]
24660
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "it"], ["name", "Lettonia"], ["mgca_country_id", 18], ["created_at", "2016-10-13 08:37:22.782858"], ["updated_at", "2016-10-13 08:37:22.782858"]]
24661
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "pl"], ["name", "Łotwa"], ["mgca_country_id", 18], ["created_at", "2016-10-13 08:37:22.783819"], ["updated_at", "2016-10-13 08:37:22.783819"]]
24662
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "ru"], ["name", "Латвия"], ["mgca_country_id", 18], ["created_at", "2016-10-13 08:37:22.784759"], ["updated_at", "2016-10-13 08:37:22.784759"]]
24663
+ SQL (0.2ms) INSERT INTO "mgca_countries" ("dial_code", "default_name", "iso_code", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["dial_code", "+423"], ["default_name", "Liechtenstein"], ["iso_code", "LI"], ["created_at", "2016-10-13 08:37:22.789297"], ["updated_at", "2016-10-13 08:37:22.789297"]]
24664
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "cs"], ["name", "Lichtenštejnsko"], ["mgca_country_id", 19], ["created_at", "2016-10-13 08:37:22.790361"], ["updated_at", "2016-10-13 08:37:22.790361"]]
24665
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "de"], ["name", "Liechtenstein"], ["mgca_country_id", 19], ["created_at", "2016-10-13 08:37:22.791320"], ["updated_at", "2016-10-13 08:37:22.791320"]]
24666
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "en"], ["name", "Liechtenstein"], ["mgca_country_id", 19], ["created_at", "2016-10-13 08:37:22.792201"], ["updated_at", "2016-10-13 08:37:22.792201"]]
24667
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "es"], ["name", "Liechtenstein"], ["mgca_country_id", 19], ["created_at", "2016-10-13 08:37:22.793123"], ["updated_at", "2016-10-13 08:37:22.793123"]]
24668
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "fr"], ["name", "Liechtenstein"], ["mgca_country_id", 19], ["created_at", "2016-10-13 08:37:22.794024"], ["updated_at", "2016-10-13 08:37:22.794024"]]
24669
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "it"], ["name", "Liechtenstein"], ["mgca_country_id", 19], ["created_at", "2016-10-13 08:37:22.794923"], ["updated_at", "2016-10-13 08:37:22.794923"]]
24670
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "pl"], ["name", "Liechtenstein"], ["mgca_country_id", 19], ["created_at", "2016-10-13 08:37:22.795830"], ["updated_at", "2016-10-13 08:37:22.795830"]]
24671
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "ru"], ["name", "Лихтенштейн"], ["mgca_country_id", 19], ["created_at", "2016-10-13 08:37:22.796703"], ["updated_at", "2016-10-13 08:37:22.796703"]]
24672
+ SQL (0.3ms) INSERT INTO "mgca_countries" ("dial_code", "default_name", "iso_code", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["dial_code", "+370"], ["default_name", "Lithuania"], ["iso_code", "LT"], ["created_at", "2016-10-13 08:37:22.800848"], ["updated_at", "2016-10-13 08:37:22.800848"]]
24673
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "cs"], ["name", "Litva"], ["mgca_country_id", 20], ["created_at", "2016-10-13 08:37:22.802060"], ["updated_at", "2016-10-13 08:37:22.802060"]]
24674
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "de"], ["name", "Litauen"], ["mgca_country_id", 20], ["created_at", "2016-10-13 08:37:22.803040"], ["updated_at", "2016-10-13 08:37:22.803040"]]
24675
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "en"], ["name", "Lithuania"], ["mgca_country_id", 20], ["created_at", "2016-10-13 08:37:22.803948"], ["updated_at", "2016-10-13 08:37:22.803948"]]
24676
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "es"], ["name", "Lituania"], ["mgca_country_id", 20], ["created_at", "2016-10-13 08:37:22.804828"], ["updated_at", "2016-10-13 08:37:22.804828"]]
24677
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "fr"], ["name", "Lituanie"], ["mgca_country_id", 20], ["created_at", "2016-10-13 08:37:22.805706"], ["updated_at", "2016-10-13 08:37:22.805706"]]
24678
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "it"], ["name", "Lituania"], ["mgca_country_id", 20], ["created_at", "2016-10-13 08:37:22.806628"], ["updated_at", "2016-10-13 08:37:22.806628"]]
24679
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "pl"], ["name", "Litwa"], ["mgca_country_id", 20], ["created_at", "2016-10-13 08:37:22.807539"], ["updated_at", "2016-10-13 08:37:22.807539"]]
24680
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "ru"], ["name", "Литва"], ["mgca_country_id", 20], ["created_at", "2016-10-13 08:37:22.808458"], ["updated_at", "2016-10-13 08:37:22.808458"]]
24681
+ SQL (0.2ms) INSERT INTO "mgca_countries" ("dial_code", "default_name", "iso_code", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["dial_code", "+352"], ["default_name", "Luxembourg"], ["iso_code", "LU"], ["created_at", "2016-10-13 08:37:22.812685"], ["updated_at", "2016-10-13 08:37:22.812685"]]
24682
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "cs"], ["name", "Lucembursko"], ["mgca_country_id", 21], ["created_at", "2016-10-13 08:37:22.813699"], ["updated_at", "2016-10-13 08:37:22.813699"]]
24683
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "de"], ["name", "Luxemburg"], ["mgca_country_id", 21], ["created_at", "2016-10-13 08:37:22.814648"], ["updated_at", "2016-10-13 08:37:22.814648"]]
24684
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "en"], ["name", "Luxembourg"], ["mgca_country_id", 21], ["created_at", "2016-10-13 08:37:22.815638"], ["updated_at", "2016-10-13 08:37:22.815638"]]
24685
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "es"], ["name", "Luxemburgo"], ["mgca_country_id", 21], ["created_at", "2016-10-13 08:37:22.816550"], ["updated_at", "2016-10-13 08:37:22.816550"]]
24686
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "fr"], ["name", "Luxembourg"], ["mgca_country_id", 21], ["created_at", "2016-10-13 08:37:22.817453"], ["updated_at", "2016-10-13 08:37:22.817453"]]
24687
+ SQL (0.3ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "it"], ["name", "Lussemburgo"], ["mgca_country_id", 21], ["created_at", "2016-10-13 08:37:22.818482"], ["updated_at", "2016-10-13 08:37:22.818482"]]
24688
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "pl"], ["name", "Luksemburg"], ["mgca_country_id", 21], ["created_at", "2016-10-13 08:37:22.819979"], ["updated_at", "2016-10-13 08:37:22.819979"]]
24689
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "ru"], ["name", "Люксембург"], ["mgca_country_id", 21], ["created_at", "2016-10-13 08:37:22.821020"], ["updated_at", "2016-10-13 08:37:22.821020"]]
24690
+ SQL (0.2ms) INSERT INTO "mgca_countries" ("dial_code", "default_name", "iso_code", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["dial_code", "+31"], ["default_name", "Netherlands"], ["iso_code", "NL"], ["created_at", "2016-10-13 08:37:22.825848"], ["updated_at", "2016-10-13 08:37:22.825848"]]
24691
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "cs"], ["name", "Nizozemsko"], ["mgca_country_id", 22], ["created_at", "2016-10-13 08:37:22.827245"], ["updated_at", "2016-10-13 08:37:22.827245"]]
24692
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "de"], ["name", "Niederlande"], ["mgca_country_id", 22], ["created_at", "2016-10-13 08:37:22.828218"], ["updated_at", "2016-10-13 08:37:22.828218"]]
24693
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "en"], ["name", "Netherlands"], ["mgca_country_id", 22], ["created_at", "2016-10-13 08:37:22.829269"], ["updated_at", "2016-10-13 08:37:22.829269"]]
24694
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "es"], ["name", "Países Bajos"], ["mgca_country_id", 22], ["created_at", "2016-10-13 08:37:22.830151"], ["updated_at", "2016-10-13 08:37:22.830151"]]
24695
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "fr"], ["name", "Pays-Bas"], ["mgca_country_id", 22], ["created_at", "2016-10-13 08:37:22.831127"], ["updated_at", "2016-10-13 08:37:22.831127"]]
24696
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "it"], ["name", "Paesi Bassi"], ["mgca_country_id", 22], ["created_at", "2016-10-13 08:37:22.832099"], ["updated_at", "2016-10-13 08:37:22.832099"]]
24697
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "pl"], ["name", "Holandia"], ["mgca_country_id", 22], ["created_at", "2016-10-13 08:37:22.833086"], ["updated_at", "2016-10-13 08:37:22.833086"]]
24698
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "ru"], ["name", "Нидерланды"], ["mgca_country_id", 22], ["created_at", "2016-10-13 08:37:22.834006"], ["updated_at", "2016-10-13 08:37:22.834006"]]
24699
+ SQL (0.2ms) INSERT INTO "mgca_countries" ("dial_code", "default_name", "iso_code", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["dial_code", "+47"], ["default_name", "Norway"], ["iso_code", "NO"], ["created_at", "2016-10-13 08:37:22.838353"], ["updated_at", "2016-10-13 08:37:22.838353"]]
24700
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "cs"], ["name", "Norsko"], ["mgca_country_id", 23], ["created_at", "2016-10-13 08:37:22.839398"], ["updated_at", "2016-10-13 08:37:22.839398"]]
24701
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "de"], ["name", "Norwegen"], ["mgca_country_id", 23], ["created_at", "2016-10-13 08:37:22.840329"], ["updated_at", "2016-10-13 08:37:22.840329"]]
24702
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "en"], ["name", "Norway"], ["mgca_country_id", 23], ["created_at", "2016-10-13 08:37:22.841313"], ["updated_at", "2016-10-13 08:37:22.841313"]]
24703
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "es"], ["name", "Noruega"], ["mgca_country_id", 23], ["created_at", "2016-10-13 08:37:22.842184"], ["updated_at", "2016-10-13 08:37:22.842184"]]
24704
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "fr"], ["name", "Norvège"], ["mgca_country_id", 23], ["created_at", "2016-10-13 08:37:22.843113"], ["updated_at", "2016-10-13 08:37:22.843113"]]
24705
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "it"], ["name", "Norvegia"], ["mgca_country_id", 23], ["created_at", "2016-10-13 08:37:22.844064"], ["updated_at", "2016-10-13 08:37:22.844064"]]
24706
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "pl"], ["name", "Norwegia"], ["mgca_country_id", 23], ["created_at", "2016-10-13 08:37:22.845015"], ["updated_at", "2016-10-13 08:37:22.845015"]]
24707
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "ru"], ["name", "Норвегия"], ["mgca_country_id", 23], ["created_at", "2016-10-13 08:37:22.845949"], ["updated_at", "2016-10-13 08:37:22.845949"]]
24708
+ SQL (0.2ms) INSERT INTO "mgca_countries" ("dial_code", "default_name", "iso_code", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["dial_code", "+48"], ["default_name", "Poland"], ["iso_code", "PL"], ["created_at", "2016-10-13 08:37:22.850107"], ["updated_at", "2016-10-13 08:37:22.850107"]]
24709
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "cs"], ["name", "Polsko"], ["mgca_country_id", 24], ["created_at", "2016-10-13 08:37:22.851113"], ["updated_at", "2016-10-13 08:37:22.851113"]]
24710
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "de"], ["name", "Polen"], ["mgca_country_id", 24], ["created_at", "2016-10-13 08:37:22.852133"], ["updated_at", "2016-10-13 08:37:22.852133"]]
24711
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "en"], ["name", "Poland"], ["mgca_country_id", 24], ["created_at", "2016-10-13 08:37:22.853099"], ["updated_at", "2016-10-13 08:37:22.853099"]]
24712
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "es"], ["name", "Polonia"], ["mgca_country_id", 24], ["created_at", "2016-10-13 08:37:22.853995"], ["updated_at", "2016-10-13 08:37:22.853995"]]
24713
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "fr"], ["name", "Pologne"], ["mgca_country_id", 24], ["created_at", "2016-10-13 08:37:22.854881"], ["updated_at", "2016-10-13 08:37:22.854881"]]
24714
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "it"], ["name", "Polonia"], ["mgca_country_id", 24], ["created_at", "2016-10-13 08:37:22.855770"], ["updated_at", "2016-10-13 08:37:22.855770"]]
24715
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "pl"], ["name", "Polska"], ["mgca_country_id", 24], ["created_at", "2016-10-13 08:37:22.856678"], ["updated_at", "2016-10-13 08:37:22.856678"]]
24716
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "ru"], ["name", "Польша"], ["mgca_country_id", 24], ["created_at", "2016-10-13 08:37:22.857571"], ["updated_at", "2016-10-13 08:37:22.857571"]]
24717
+ SQL (0.2ms) INSERT INTO "mgca_countries" ("dial_code", "default_name", "iso_code", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["dial_code", "+351"], ["default_name", "Portugal"], ["iso_code", "PT"], ["created_at", "2016-10-13 08:37:22.861806"], ["updated_at", "2016-10-13 08:37:22.861806"]]
24718
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "cs"], ["name", "Portugalsko"], ["mgca_country_id", 25], ["created_at", "2016-10-13 08:37:22.862892"], ["updated_at", "2016-10-13 08:37:22.862892"]]
24719
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "de"], ["name", "Portugal"], ["mgca_country_id", 25], ["created_at", "2016-10-13 08:37:22.863847"], ["updated_at", "2016-10-13 08:37:22.863847"]]
24720
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "en"], ["name", "Portugal"], ["mgca_country_id", 25], ["created_at", "2016-10-13 08:37:22.864838"], ["updated_at", "2016-10-13 08:37:22.864838"]]
24721
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "es"], ["name", "Portugal"], ["mgca_country_id", 25], ["created_at", "2016-10-13 08:37:22.865803"], ["updated_at", "2016-10-13 08:37:22.865803"]]
24722
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "fr"], ["name", "Portugal"], ["mgca_country_id", 25], ["created_at", "2016-10-13 08:37:22.866685"], ["updated_at", "2016-10-13 08:37:22.866685"]]
24723
+ SQL (0.3ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "it"], ["name", "Portogallo"], ["mgca_country_id", 25], ["created_at", "2016-10-13 08:37:22.867682"], ["updated_at", "2016-10-13 08:37:22.867682"]]
24724
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "pl"], ["name", "Portugalia"], ["mgca_country_id", 25], ["created_at", "2016-10-13 08:37:22.869098"], ["updated_at", "2016-10-13 08:37:22.869098"]]
24725
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "ru"], ["name", "Португалия"], ["mgca_country_id", 25], ["created_at", "2016-10-13 08:37:22.870122"], ["updated_at", "2016-10-13 08:37:22.870122"]]
24726
+ SQL (0.2ms) INSERT INTO "mgca_countries" ("dial_code", "default_name", "iso_code", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["dial_code", "+40"], ["default_name", "Romania"], ["iso_code", "RO"], ["created_at", "2016-10-13 08:37:22.874653"], ["updated_at", "2016-10-13 08:37:22.874653"]]
24727
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "cs"], ["name", "Rumunsko"], ["mgca_country_id", 26], ["created_at", "2016-10-13 08:37:22.875863"], ["updated_at", "2016-10-13 08:37:22.875863"]]
24728
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "de"], ["name", "Rumänien"], ["mgca_country_id", 26], ["created_at", "2016-10-13 08:37:22.876989"], ["updated_at", "2016-10-13 08:37:22.876989"]]
24729
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "en"], ["name", "Romania"], ["mgca_country_id", 26], ["created_at", "2016-10-13 08:37:22.877925"], ["updated_at", "2016-10-13 08:37:22.877925"]]
24730
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "es"], ["name", "Rumanía"], ["mgca_country_id", 26], ["created_at", "2016-10-13 08:37:22.878834"], ["updated_at", "2016-10-13 08:37:22.878834"]]
24731
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "fr"], ["name", "Roumanie"], ["mgca_country_id", 26], ["created_at", "2016-10-13 08:37:22.879831"], ["updated_at", "2016-10-13 08:37:22.879831"]]
24732
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "it"], ["name", "Romania"], ["mgca_country_id", 26], ["created_at", "2016-10-13 08:37:22.880742"], ["updated_at", "2016-10-13 08:37:22.880742"]]
24733
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "pl"], ["name", "Rumunia"], ["mgca_country_id", 26], ["created_at", "2016-10-13 08:37:22.881675"], ["updated_at", "2016-10-13 08:37:22.881675"]]
24734
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "ru"], ["name", "Румыния"], ["mgca_country_id", 26], ["created_at", "2016-10-13 08:37:22.882676"], ["updated_at", "2016-10-13 08:37:22.882676"]]
24735
+ SQL (0.2ms) INSERT INTO "mgca_countries" ("dial_code", "default_name", "iso_code", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["dial_code", "+7"], ["default_name", "Russian Federation"], ["iso_code", "RU"], ["created_at", "2016-10-13 08:37:22.887119"], ["updated_at", "2016-10-13 08:37:22.887119"]]
24736
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "cs"], ["name", "Ruská federace"], ["mgca_country_id", 27], ["created_at", "2016-10-13 08:37:22.888194"], ["updated_at", "2016-10-13 08:37:22.888194"]]
24737
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "de"], ["name", "Russische Föderation"], ["mgca_country_id", 27], ["created_at", "2016-10-13 08:37:22.889132"], ["updated_at", "2016-10-13 08:37:22.889132"]]
24738
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "en"], ["name", "Russian Federation"], ["mgca_country_id", 27], ["created_at", "2016-10-13 08:37:22.890066"], ["updated_at", "2016-10-13 08:37:22.890066"]]
24739
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "es"], ["name", "Federación Rusa"], ["mgca_country_id", 27], ["created_at", "2016-10-13 08:37:22.890993"], ["updated_at", "2016-10-13 08:37:22.890993"]]
24740
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "fr"], ["name", "Russie, Fédération de"], ["mgca_country_id", 27], ["created_at", "2016-10-13 08:37:22.891967"], ["updated_at", "2016-10-13 08:37:22.891967"]]
24741
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "it"], ["name", "Russia"], ["mgca_country_id", 27], ["created_at", "2016-10-13 08:37:22.892893"], ["updated_at", "2016-10-13 08:37:22.892893"]]
24742
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "pl"], ["name", "Federacja Rosyjska"], ["mgca_country_id", 27], ["created_at", "2016-10-13 08:37:22.893817"], ["updated_at", "2016-10-13 08:37:22.893817"]]
24743
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "ru"], ["name", "Российская Федерация"], ["mgca_country_id", 27], ["created_at", "2016-10-13 08:37:22.894753"], ["updated_at", "2016-10-13 08:37:22.894753"]]
24744
+ SQL (0.3ms) INSERT INTO "mgca_countries" ("dial_code", "default_name", "iso_code", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["dial_code", "+381"], ["default_name", "Serbia"], ["iso_code", "RS"], ["created_at", "2016-10-13 08:37:22.899443"], ["updated_at", "2016-10-13 08:37:22.899443"]]
24745
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "cs"], ["name", "Srbsko"], ["mgca_country_id", 28], ["created_at", "2016-10-13 08:37:22.900737"], ["updated_at", "2016-10-13 08:37:22.900737"]]
24746
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "de"], ["name", "Serbien"], ["mgca_country_id", 28], ["created_at", "2016-10-13 08:37:22.901758"], ["updated_at", "2016-10-13 08:37:22.901758"]]
24747
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "en"], ["name", "Serbia"], ["mgca_country_id", 28], ["created_at", "2016-10-13 08:37:22.902682"], ["updated_at", "2016-10-13 08:37:22.902682"]]
24748
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "es"], ["name", "Serbia"], ["mgca_country_id", 28], ["created_at", "2016-10-13 08:37:22.903680"], ["updated_at", "2016-10-13 08:37:22.903680"]]
24749
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "fr"], ["name", "Serbie"], ["mgca_country_id", 28], ["created_at", "2016-10-13 08:37:22.904581"], ["updated_at", "2016-10-13 08:37:22.904581"]]
24750
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "it"], ["name", "Serbia"], ["mgca_country_id", 28], ["created_at", "2016-10-13 08:37:22.905515"], ["updated_at", "2016-10-13 08:37:22.905515"]]
24751
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "pl"], ["name", "Serbia"], ["mgca_country_id", 28], ["created_at", "2016-10-13 08:37:22.906419"], ["updated_at", "2016-10-13 08:37:22.906419"]]
24752
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "ru"], ["name", "Сербия"], ["mgca_country_id", 28], ["created_at", "2016-10-13 08:37:22.907300"], ["updated_at", "2016-10-13 08:37:22.907300"]]
24753
+ SQL (0.2ms) INSERT INTO "mgca_countries" ("dial_code", "default_name", "iso_code", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["dial_code", "+421"], ["default_name", "Slovakia"], ["iso_code", "SK"], ["created_at", "2016-10-13 08:37:22.911565"], ["updated_at", "2016-10-13 08:37:22.911565"]]
24754
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "cs"], ["name", "Slovensko"], ["mgca_country_id", 29], ["created_at", "2016-10-13 08:37:22.912605"], ["updated_at", "2016-10-13 08:37:22.912605"]]
24755
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "de"], ["name", "Slowakei"], ["mgca_country_id", 29], ["created_at", "2016-10-13 08:37:22.913531"], ["updated_at", "2016-10-13 08:37:22.913531"]]
24756
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "en"], ["name", "Slovakia"], ["mgca_country_id", 29], ["created_at", "2016-10-13 08:37:22.914442"], ["updated_at", "2016-10-13 08:37:22.914442"]]
24757
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "es"], ["name", "Eslovaquia"], ["mgca_country_id", 29], ["created_at", "2016-10-13 08:37:22.915381"], ["updated_at", "2016-10-13 08:37:22.915381"]]
24758
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "fr"], ["name", "Slovaquie"], ["mgca_country_id", 29], ["created_at", "2016-10-13 08:37:22.916302"], ["updated_at", "2016-10-13 08:37:22.916302"]]
24759
+ SQL (0.3ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "it"], ["name", "Slovacchia"], ["mgca_country_id", 29], ["created_at", "2016-10-13 08:37:22.917280"], ["updated_at", "2016-10-13 08:37:22.917280"]]
24760
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "pl"], ["name", "Słowacja"], ["mgca_country_id", 29], ["created_at", "2016-10-13 08:37:22.918717"], ["updated_at", "2016-10-13 08:37:22.918717"]]
24761
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "ru"], ["name", "Словакия"], ["mgca_country_id", 29], ["created_at", "2016-10-13 08:37:22.919932"], ["updated_at", "2016-10-13 08:37:22.919932"]]
24762
+ SQL (0.2ms) INSERT INTO "mgca_countries" ("dial_code", "default_name", "iso_code", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["dial_code", "+386"], ["default_name", "Slovenia"], ["iso_code", "SI"], ["created_at", "2016-10-13 08:37:22.924418"], ["updated_at", "2016-10-13 08:37:22.924418"]]
24763
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "cs"], ["name", "Slovinsko"], ["mgca_country_id", 30], ["created_at", "2016-10-13 08:37:22.925768"], ["updated_at", "2016-10-13 08:37:22.925768"]]
24764
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "de"], ["name", "Slowenien"], ["mgca_country_id", 30], ["created_at", "2016-10-13 08:37:22.926965"], ["updated_at", "2016-10-13 08:37:22.926965"]]
24765
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "en"], ["name", "Slovenia"], ["mgca_country_id", 30], ["created_at", "2016-10-13 08:37:22.927914"], ["updated_at", "2016-10-13 08:37:22.927914"]]
24766
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "es"], ["name", "Eslovenia"], ["mgca_country_id", 30], ["created_at", "2016-10-13 08:37:22.928842"], ["updated_at", "2016-10-13 08:37:22.928842"]]
24767
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "fr"], ["name", "Slovénie"], ["mgca_country_id", 30], ["created_at", "2016-10-13 08:37:22.929870"], ["updated_at", "2016-10-13 08:37:22.929870"]]
24768
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "it"], ["name", "Slovenia"], ["mgca_country_id", 30], ["created_at", "2016-10-13 08:37:22.930857"], ["updated_at", "2016-10-13 08:37:22.930857"]]
24769
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "pl"], ["name", "Słowenia"], ["mgca_country_id", 30], ["created_at", "2016-10-13 08:37:22.931834"], ["updated_at", "2016-10-13 08:37:22.931834"]]
24770
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "ru"], ["name", "Словения"], ["mgca_country_id", 30], ["created_at", "2016-10-13 08:37:22.932807"], ["updated_at", "2016-10-13 08:37:22.932807"]]
24771
+ SQL (0.2ms) INSERT INTO "mgca_countries" ("dial_code", "default_name", "iso_code", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["dial_code", "+34"], ["default_name", "Spain"], ["iso_code", "ES"], ["created_at", "2016-10-13 08:37:22.937162"], ["updated_at", "2016-10-13 08:37:22.937162"]]
24772
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "cs"], ["name", "Španělsko"], ["mgca_country_id", 31], ["created_at", "2016-10-13 08:37:22.938226"], ["updated_at", "2016-10-13 08:37:22.938226"]]
24773
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "de"], ["name", "Spanien"], ["mgca_country_id", 31], ["created_at", "2016-10-13 08:37:22.939152"], ["updated_at", "2016-10-13 08:37:22.939152"]]
24774
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "en"], ["name", "Spain"], ["mgca_country_id", 31], ["created_at", "2016-10-13 08:37:22.940063"], ["updated_at", "2016-10-13 08:37:22.940063"]]
24775
+ SQL (0.1ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "es"], ["name", "España"], ["mgca_country_id", 31], ["created_at", "2016-10-13 08:37:22.940948"], ["updated_at", "2016-10-13 08:37:22.940948"]]
24776
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "fr"], ["name", "Espagne"], ["mgca_country_id", 31], ["created_at", "2016-10-13 08:37:22.941835"], ["updated_at", "2016-10-13 08:37:22.941835"]]
24777
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "it"], ["name", "Spagna"], ["mgca_country_id", 31], ["created_at", "2016-10-13 08:37:22.942789"], ["updated_at", "2016-10-13 08:37:22.942789"]]
24778
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "pl"], ["name", "Hiszpania"], ["mgca_country_id", 31], ["created_at", "2016-10-13 08:37:22.943728"], ["updated_at", "2016-10-13 08:37:22.943728"]]
24779
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "ru"], ["name", "Испания"], ["mgca_country_id", 31], ["created_at", "2016-10-13 08:37:22.944688"], ["updated_at", "2016-10-13 08:37:22.944688"]]
24780
+ SQL (0.2ms) INSERT INTO "mgca_countries" ("dial_code", "default_name", "iso_code", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["dial_code", "+46"], ["default_name", "Sweden"], ["iso_code", "SE"], ["created_at", "2016-10-13 08:37:22.949092"], ["updated_at", "2016-10-13 08:37:22.949092"]]
24781
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "cs"], ["name", "Švédsko"], ["mgca_country_id", 32], ["created_at", "2016-10-13 08:37:22.950156"], ["updated_at", "2016-10-13 08:37:22.950156"]]
24782
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "de"], ["name", "Schweden"], ["mgca_country_id", 32], ["created_at", "2016-10-13 08:37:22.951149"], ["updated_at", "2016-10-13 08:37:22.951149"]]
24783
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "en"], ["name", "Sweden"], ["mgca_country_id", 32], ["created_at", "2016-10-13 08:37:22.952120"], ["updated_at", "2016-10-13 08:37:22.952120"]]
24784
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "es"], ["name", "Suecia"], ["mgca_country_id", 32], ["created_at", "2016-10-13 08:37:22.953012"], ["updated_at", "2016-10-13 08:37:22.953012"]]
24785
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "fr"], ["name", "Suède"], ["mgca_country_id", 32], ["created_at", "2016-10-13 08:37:22.953915"], ["updated_at", "2016-10-13 08:37:22.953915"]]
24786
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "it"], ["name", "Svezia"], ["mgca_country_id", 32], ["created_at", "2016-10-13 08:37:22.954816"], ["updated_at", "2016-10-13 08:37:22.954816"]]
24787
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "pl"], ["name", "Szwecja"], ["mgca_country_id", 32], ["created_at", "2016-10-13 08:37:22.955771"], ["updated_at", "2016-10-13 08:37:22.955771"]]
24788
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "ru"], ["name", "Швеция"], ["mgca_country_id", 32], ["created_at", "2016-10-13 08:37:22.956671"], ["updated_at", "2016-10-13 08:37:22.956671"]]
24789
+ SQL (0.2ms) INSERT INTO "mgca_countries" ("dial_code", "default_name", "iso_code", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["dial_code", "+41"], ["default_name", "Switzerland"], ["iso_code", "CH"], ["created_at", "2016-10-13 08:37:22.960923"], ["updated_at", "2016-10-13 08:37:22.960923"]]
24790
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "cs"], ["name", "Švýcarsko"], ["mgca_country_id", 33], ["created_at", "2016-10-13 08:37:22.961966"], ["updated_at", "2016-10-13 08:37:22.961966"]]
24791
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "de"], ["name", "Schweiz"], ["mgca_country_id", 33], ["created_at", "2016-10-13 08:37:22.962907"], ["updated_at", "2016-10-13 08:37:22.962907"]]
24792
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "en"], ["name", "Switzerland"], ["mgca_country_id", 33], ["created_at", "2016-10-13 08:37:22.963811"], ["updated_at", "2016-10-13 08:37:22.963811"]]
24793
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "es"], ["name", "Suiza"], ["mgca_country_id", 33], ["created_at", "2016-10-13 08:37:22.964708"], ["updated_at", "2016-10-13 08:37:22.964708"]]
24794
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "fr"], ["name", "Suisse"], ["mgca_country_id", 33], ["created_at", "2016-10-13 08:37:22.965600"], ["updated_at", "2016-10-13 08:37:22.965600"]]
24795
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "it"], ["name", "Svizzera"], ["mgca_country_id", 33], ["created_at", "2016-10-13 08:37:22.966520"], ["updated_at", "2016-10-13 08:37:22.966520"]]
24796
+ SQL (0.3ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "pl"], ["name", "Szwajcaria"], ["mgca_country_id", 33], ["created_at", "2016-10-13 08:37:22.967723"], ["updated_at", "2016-10-13 08:37:22.967723"]]
24797
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "ru"], ["name", "Швейцария"], ["mgca_country_id", 33], ["created_at", "2016-10-13 08:37:22.968976"], ["updated_at", "2016-10-13 08:37:22.968976"]]
24798
+ SQL (0.2ms) INSERT INTO "mgca_countries" ("dial_code", "default_name", "iso_code", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["dial_code", "+380"], ["default_name", "Ukraine"], ["iso_code", "UA"], ["created_at", "2016-10-13 08:37:22.973501"], ["updated_at", "2016-10-13 08:37:22.973501"]]
24799
+ SQL (0.3ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "cs"], ["name", "Ukrajina"], ["mgca_country_id", 34], ["created_at", "2016-10-13 08:37:22.974630"], ["updated_at", "2016-10-13 08:37:22.974630"]]
24800
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "de"], ["name", "Ukraine"], ["mgca_country_id", 34], ["created_at", "2016-10-13 08:37:22.975796"], ["updated_at", "2016-10-13 08:37:22.975796"]]
24801
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "en"], ["name", "Ukraine"], ["mgca_country_id", 34], ["created_at", "2016-10-13 08:37:22.976719"], ["updated_at", "2016-10-13 08:37:22.976719"]]
24802
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "es"], ["name", "Ucrania"], ["mgca_country_id", 34], ["created_at", "2016-10-13 08:37:22.977642"], ["updated_at", "2016-10-13 08:37:22.977642"]]
24803
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "fr"], ["name", "Ukraine"], ["mgca_country_id", 34], ["created_at", "2016-10-13 08:37:22.978650"], ["updated_at", "2016-10-13 08:37:22.978650"]]
24804
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "it"], ["name", "Ucraina"], ["mgca_country_id", 34], ["created_at", "2016-10-13 08:37:22.979628"], ["updated_at", "2016-10-13 08:37:22.979628"]]
24805
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "pl"], ["name", "Ukraina"], ["mgca_country_id", 34], ["created_at", "2016-10-13 08:37:22.980509"], ["updated_at", "2016-10-13 08:37:22.980509"]]
24806
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "ru"], ["name", "Украина"], ["mgca_country_id", 34], ["created_at", "2016-10-13 08:37:22.981501"], ["updated_at", "2016-10-13 08:37:22.981501"]]
24807
+ SQL (0.2ms) INSERT INTO "mgca_countries" ("dial_code", "default_name", "iso_code", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["dial_code", "+44"], ["default_name", "United Kingdom"], ["iso_code", "GB"], ["created_at", "2016-10-13 08:37:22.986454"], ["updated_at", "2016-10-13 08:37:22.986454"]]
24808
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "cs"], ["name", "Spojené království"], ["mgca_country_id", 35], ["created_at", "2016-10-13 08:37:22.987595"], ["updated_at", "2016-10-13 08:37:22.987595"]]
24809
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "de"], ["name", "Vereinigtes Königreich"], ["mgca_country_id", 35], ["created_at", "2016-10-13 08:37:22.988576"], ["updated_at", "2016-10-13 08:37:22.988576"]]
24810
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "en"], ["name", "United Kingdom"], ["mgca_country_id", 35], ["created_at", "2016-10-13 08:37:22.989497"], ["updated_at", "2016-10-13 08:37:22.989497"]]
24811
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "es"], ["name", "Reino Unido"], ["mgca_country_id", 35], ["created_at", "2016-10-13 08:37:22.990420"], ["updated_at", "2016-10-13 08:37:22.990420"]]
24812
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "fr"], ["name", "Royaume-Uni"], ["mgca_country_id", 35], ["created_at", "2016-10-13 08:37:22.991277"], ["updated_at", "2016-10-13 08:37:22.991277"]]
24813
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "it"], ["name", "Regno Unito"], ["mgca_country_id", 35], ["created_at", "2016-10-13 08:37:22.992207"], ["updated_at", "2016-10-13 08:37:22.992207"]]
24814
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "pl"], ["name", "Wielka Brytania"], ["mgca_country_id", 35], ["created_at", "2016-10-13 08:37:22.993122"], ["updated_at", "2016-10-13 08:37:22.993122"]]
24815
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "ru"], ["name", "Соединённое Королевство"], ["mgca_country_id", 35], ["created_at", "2016-10-13 08:37:22.994018"], ["updated_at", "2016-10-13 08:37:22.994018"]]
24816
+ SQL (0.2ms) INSERT INTO "mgca_countries" ("dial_code", "default_name", "iso_code", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["dial_code", "+1"], ["default_name", "United States"], ["iso_code", "US"], ["created_at", "2016-10-13 08:37:22.998314"], ["updated_at", "2016-10-13 08:37:22.998314"]]
24817
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "cs"], ["name", "Spojené státy"], ["mgca_country_id", 36], ["created_at", "2016-10-13 08:37:22.999469"], ["updated_at", "2016-10-13 08:37:22.999469"]]
24818
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "de"], ["name", "Vereinigte Staaten"], ["mgca_country_id", 36], ["created_at", "2016-10-13 08:37:23.000469"], ["updated_at", "2016-10-13 08:37:23.000469"]]
24819
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "en"], ["name", "United States"], ["mgca_country_id", 36], ["created_at", "2016-10-13 08:37:23.001477"], ["updated_at", "2016-10-13 08:37:23.001477"]]
24820
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "es"], ["name", "Estados Unidos"], ["mgca_country_id", 36], ["created_at", "2016-10-13 08:37:23.002413"], ["updated_at", "2016-10-13 08:37:23.002413"]]
24821
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "fr"], ["name", "États-Unis"], ["mgca_country_id", 36], ["created_at", "2016-10-13 08:37:23.003322"], ["updated_at", "2016-10-13 08:37:23.003322"]]
24822
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "it"], ["name", "Stati Uniti"], ["mgca_country_id", 36], ["created_at", "2016-10-13 08:37:23.004227"], ["updated_at", "2016-10-13 08:37:23.004227"]]
24823
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "pl"], ["name", "Stany Zjednoczone"], ["mgca_country_id", 36], ["created_at", "2016-10-13 08:37:23.005125"], ["updated_at", "2016-10-13 08:37:23.005125"]]
24824
+ SQL (0.2ms) INSERT INTO "mgca_country_translations" ("locale", "name", "mgca_country_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["locale", "ru"], ["name", "Соединённые штаты"], ["mgca_country_id", 36], ["created_at", "2016-10-13 08:37:23.006078"], ["updated_at", "2016-10-13 08:37:23.006078"]]
24825
+  (0.3ms) SELECT COUNT(*) FROM "mgca_countries"
24826
+ DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in up at /Users/austin/Sites/berlinmagic/magic_addresses/spec/dummy/db/migrate/20150225220219_add_magic_addresses.rb:84)
24827
+  (2.4ms) CREATE TABLE "mgca_states" ("id" serial primary key, "default_name" character varying, "short_name" character varying, "fsm_state" character varying DEFAULT 'new', "country_id" integer, "created_at" timestamp, "updated_at" timestamp)
24828
+  (0.8ms) CREATE INDEX "index_mgca_states_on_country_id" ON "mgca_states" ("country_id")
24829
+  (2.4ms) CREATE TABLE "mgca_state_translations" ("id" serial primary key, "mgca_state_id" integer NOT NULL, "locale" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
24830
+  (0.2ms) ALTER TABLE "mgca_state_translations" ADD "name" character varying
24831
+  (0.6ms) CREATE INDEX "index_mgca_state_translations_on_mgca_state_id" ON "mgca_state_translations" ("mgca_state_id")
24832
+  (0.6ms) CREATE INDEX "index_mgca_state_translations_on_locale" ON "mgca_state_translations" ("locale")
24833
+ DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in up at /Users/austin/Sites/berlinmagic/magic_addresses/spec/dummy/db/migrate/20150225220219_add_magic_addresses.rb:102)
24834
+  (2.1ms) CREATE TABLE "mgca_cities" ("id" serial primary key, "default_name" character varying, "short_name" character varying, "fsm_state" character varying DEFAULT 'new', "state_id" integer, "country_id" integer, "created_at" timestamp, "updated_at" timestamp)
24835
+  (0.7ms) CREATE INDEX "index_mgca_cities_on_state_id" ON "mgca_cities" ("state_id")
24836
+  (0.6ms) CREATE INDEX "index_mgca_cities_on_country_id" ON "mgca_cities" ("country_id")
24837
+  (2.4ms) CREATE TABLE "mgca_city_translations" ("id" serial primary key, "mgca_city_id" integer NOT NULL, "locale" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
24838
+  (0.3ms) ALTER TABLE "mgca_city_translations" ADD "name" character varying
24839
+  (0.6ms) CREATE INDEX "index_mgca_city_translations_on_mgca_city_id" ON "mgca_city_translations" ("mgca_city_id")
24840
+  (0.6ms) CREATE INDEX "index_mgca_city_translations_on_locale" ON "mgca_city_translations" ("locale")
24841
+ DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in up at /Users/austin/Sites/berlinmagic/magic_addresses/spec/dummy/db/migrate/20150225220219_add_magic_addresses.rb:120)
24842
+  (2.6ms) CREATE TABLE "mgca_districts" ("id" serial primary key, "default_name" character varying, "short_name" character varying, "fsm_state" character varying DEFAULT 'new', "city_id" integer, "created_at" timestamp, "updated_at" timestamp) 
24843
+  (0.6ms) CREATE INDEX "index_mgca_districts_on_city_id" ON "mgca_districts" ("city_id")
24844
+  (2.4ms) CREATE TABLE "mgca_district_translations" ("id" serial primary key, "mgca_district_id" integer NOT NULL, "locale" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
24845
+  (0.2ms) ALTER TABLE "mgca_district_translations" ADD "name" character varying
24846
+  (0.6ms) CREATE INDEX "index_mgca_district_translations_on_mgca_district_id" ON "mgca_district_translations" ("mgca_district_id")
24847
+  (0.6ms) CREATE INDEX "index_mgca_district_translations_on_locale" ON "mgca_district_translations" ("locale")
24848
+ DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in up at /Users/austin/Sites/berlinmagic/magic_addresses/spec/dummy/db/migrate/20150225220219_add_magic_addresses.rb:138)
24849
+  (2.5ms) CREATE TABLE "mgca_subdistricts" ("id" serial primary key, "default_name" character varying, "short_name" character varying, "fsm_state" character varying DEFAULT 'new', "district_id" integer, "city_id" integer, "created_at" timestamp, "updated_at" timestamp) 
24850
+  (0.7ms) CREATE INDEX "index_mgca_subdistricts_on_district_id" ON "mgca_subdistricts" ("district_id")
24851
+  (0.6ms) CREATE INDEX "index_mgca_subdistricts_on_city_id" ON "mgca_subdistricts" ("city_id")
24852
+  (2.3ms) CREATE TABLE "mgca_subdistrict_translations" ("id" serial primary key, "mgca_subdistrict_id" integer NOT NULL, "locale" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
24853
+  (0.2ms) ALTER TABLE "mgca_subdistrict_translations" ADD "name" character varying
24854
+  (0.6ms) CREATE INDEX "index_mgca_subdistrict_translations_on_mgca_subdistrict_id" ON "mgca_subdistrict_translations" ("mgca_subdistrict_id")
24855
+  (0.6ms) CREATE INDEX "index_mgca_subdistrict_translations_on_locale" ON "mgca_subdistrict_translations" ("locale")
24856
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150225220219"]]
24857
+  (1.0ms) COMMIT
24858
+ Migrating to CreateCompanies (20151111133333)
24859
+  (1.1ms) BEGIN
24860
+  (2.3ms) CREATE TABLE "companies" ("id" serial primary key, "name" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
24861
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20151111133333"]]
24862
+  (0.3ms) COMMIT
24863
+ Migrating to UpdateMagicAddresses (20151118102658)
24864
+  (0.2ms) BEGIN
24865
+  (2.6ms) CREATE TABLE "mgca_addressibles" ("id" serial primary key, "default" boolean, "name" character varying, "owner_id" integer, "owner_type" character varying, "address_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
24866
+  (0.9ms) CREATE INDEX "index_mgca_addressibles_on_owner_type_and_owner_id" ON "mgca_addressibles" ("owner_type", "owner_id")
24867
+  (2.2ms) CREATE INDEX "index_mgca_addressibles_on_address_id" ON "mgca_addressibles" ("address_id")
24868
+  (8.1ms) ALTER TABLE "mgca_addresses" ADD "status" character varying DEFAULT 'new'
24869
+ MagicAddresses::Address Load (0.4ms) SELECT "mgca_addresses".* FROM "mgca_addresses"
24870
+  (0.3ms) DROP INDEX "index_mgca_addresses_on_owner_type_and_owner_id"
24871
+  (0.3ms) ALTER TABLE "mgca_addresses" DROP "owner_type"
24872
+  (0.2ms) ALTER TABLE "mgca_addresses" DROP "owner_id"
24873
+  (0.2ms) ALTER TABLE "mgca_addresses" DROP "default"
24874
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20151118102658"]]
24875
+  (1.4ms) COMMIT
24876
+ Migrating to CreateCustomers (20161013083634)
24877
+  (0.3ms) BEGIN
24878
+  (2.5ms) CREATE TABLE "customers" ("id" serial primary key, "name" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
24879
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161013083634"]]
24880
+  (0.3ms) COMMIT
24881
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
24882
+  (1.7ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
24883
+ FROM pg_constraint c
24884
+ JOIN pg_class t1 ON c.conrelid = t1.oid
24885
+ JOIN pg_class t2 ON c.confrelid = t2.oid
24886
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
24887
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
24888
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
24889
+ WHERE c.contype = 'f'
24890
+ AND t1.relname = 'companies'
24891
+ AND t3.nspname = ANY (current_schemas(false))
24892
+ ORDER BY c.conname
24893
+ 
24894
+  (1.4ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
24895
+ FROM pg_constraint c
24896
+ JOIN pg_class t1 ON c.conrelid = t1.oid
24897
+ JOIN pg_class t2 ON c.confrelid = t2.oid
24898
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
24899
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
24900
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
24901
+ WHERE c.contype = 'f'
24902
+ AND t1.relname = 'customers'
24903
+ AND t3.nspname = ANY (current_schemas(false))
24904
+ ORDER BY c.conname
24905
+
24906
+  (1.4ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
24907
+ FROM pg_constraint c
24908
+ JOIN pg_class t1 ON c.conrelid = t1.oid
24909
+ JOIN pg_class t2 ON c.confrelid = t2.oid
24910
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
24911
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
24912
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
24913
+ WHERE c.contype = 'f'
24914
+ AND t1.relname = 'mgca_address_translations'
24915
+ AND t3.nspname = ANY (current_schemas(false))
24916
+ ORDER BY c.conname
24917
+ 
24918
+  (1.4ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
24919
+ FROM pg_constraint c
24920
+ JOIN pg_class t1 ON c.conrelid = t1.oid
24921
+ JOIN pg_class t2 ON c.confrelid = t2.oid
24922
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
24923
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
24924
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
24925
+ WHERE c.contype = 'f'
24926
+ AND t1.relname = 'mgca_addresses'
24927
+ AND t3.nspname = ANY (current_schemas(false))
24928
+ ORDER BY c.conname
24929
+
24930
+  (1.4ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
24931
+ FROM pg_constraint c
24932
+ JOIN pg_class t1 ON c.conrelid = t1.oid
24933
+ JOIN pg_class t2 ON c.confrelid = t2.oid
24934
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
24935
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
24936
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
24937
+ WHERE c.contype = 'f'
24938
+ AND t1.relname = 'mgca_addressibles'
24939
+ AND t3.nspname = ANY (current_schemas(false))
24940
+ ORDER BY c.conname
24941
+ 
24942
+  (1.4ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
24943
+ FROM pg_constraint c
24944
+ JOIN pg_class t1 ON c.conrelid = t1.oid
24945
+ JOIN pg_class t2 ON c.confrelid = t2.oid
24946
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
24947
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
24948
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
24949
+ WHERE c.contype = 'f'
24950
+ AND t1.relname = 'mgca_cities'
24951
+ AND t3.nspname = ANY (current_schemas(false))
24952
+ ORDER BY c.conname
24953
+
24954
+  (1.4ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
24955
+ FROM pg_constraint c
24956
+ JOIN pg_class t1 ON c.conrelid = t1.oid
24957
+ JOIN pg_class t2 ON c.confrelid = t2.oid
24958
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
24959
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
24960
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
24961
+ WHERE c.contype = 'f'
24962
+ AND t1.relname = 'mgca_city_translations'
24963
+ AND t3.nspname = ANY (current_schemas(false))
24964
+ ORDER BY c.conname
24965
+ 
24966
+  (1.4ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
24967
+ FROM pg_constraint c
24968
+ JOIN pg_class t1 ON c.conrelid = t1.oid
24969
+ JOIN pg_class t2 ON c.confrelid = t2.oid
24970
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
24971
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
24972
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
24973
+ WHERE c.contype = 'f'
24974
+ AND t1.relname = 'mgca_countries'
24975
+ AND t3.nspname = ANY (current_schemas(false))
24976
+ ORDER BY c.conname
24977
+
24978
+  (1.4ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
24979
+ FROM pg_constraint c
24980
+ JOIN pg_class t1 ON c.conrelid = t1.oid
24981
+ JOIN pg_class t2 ON c.confrelid = t2.oid
24982
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
24983
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
24984
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
24985
+ WHERE c.contype = 'f'
24986
+ AND t1.relname = 'mgca_country_translations'
24987
+ AND t3.nspname = ANY (current_schemas(false))
24988
+ ORDER BY c.conname
24989
+ 
24990
+  (1.4ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
24991
+ FROM pg_constraint c
24992
+ JOIN pg_class t1 ON c.conrelid = t1.oid
24993
+ JOIN pg_class t2 ON c.confrelid = t2.oid
24994
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
24995
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
24996
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
24997
+ WHERE c.contype = 'f'
24998
+ AND t1.relname = 'mgca_district_translations'
24999
+ AND t3.nspname = ANY (current_schemas(false))
25000
+ ORDER BY c.conname
25001
+
25002
+  (1.5ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
25003
+ FROM pg_constraint c
25004
+ JOIN pg_class t1 ON c.conrelid = t1.oid
25005
+ JOIN pg_class t2 ON c.confrelid = t2.oid
25006
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
25007
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
25008
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
25009
+ WHERE c.contype = 'f'
25010
+ AND t1.relname = 'mgca_districts'
25011
+ AND t3.nspname = ANY (current_schemas(false))
25012
+ ORDER BY c.conname
25013
+ 
25014
+  (1.5ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
25015
+ FROM pg_constraint c
25016
+ JOIN pg_class t1 ON c.conrelid = t1.oid
25017
+ JOIN pg_class t2 ON c.confrelid = t2.oid
25018
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
25019
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
25020
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
25021
+ WHERE c.contype = 'f'
25022
+ AND t1.relname = 'mgca_state_translations'
25023
+ AND t3.nspname = ANY (current_schemas(false))
25024
+ ORDER BY c.conname
25025
+
25026
+  (1.5ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
25027
+ FROM pg_constraint c
25028
+ JOIN pg_class t1 ON c.conrelid = t1.oid
25029
+ JOIN pg_class t2 ON c.confrelid = t2.oid
25030
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
25031
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
25032
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
25033
+ WHERE c.contype = 'f'
25034
+ AND t1.relname = 'mgca_states'
25035
+ AND t3.nspname = ANY (current_schemas(false))
25036
+ ORDER BY c.conname
25037
+ 
25038
+  (1.4ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
25039
+ FROM pg_constraint c
25040
+ JOIN pg_class t1 ON c.conrelid = t1.oid
25041
+ JOIN pg_class t2 ON c.confrelid = t2.oid
25042
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
25043
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
25044
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
25045
+ WHERE c.contype = 'f'
25046
+ AND t1.relname = 'mgca_subdistrict_translations'
25047
+ AND t3.nspname = ANY (current_schemas(false))
25048
+ ORDER BY c.conname
25049
+
25050
+  (1.6ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
25051
+ FROM pg_constraint c
25052
+ JOIN pg_class t1 ON c.conrelid = t1.oid
25053
+ JOIN pg_class t2 ON c.confrelid = t2.oid
25054
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
25055
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
25056
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
25057
+ WHERE c.contype = 'f'
25058
+ AND t1.relname = 'mgca_subdistricts'
25059
+ AND t3.nspname = ANY (current_schemas(false))
25060
+ ORDER BY c.conname
25061
+ 
25062
+  (1.4ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
25063
+ FROM pg_constraint c
25064
+ JOIN pg_class t1 ON c.conrelid = t1.oid
25065
+ JOIN pg_class t2 ON c.confrelid = t2.oid
25066
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
25067
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
25068
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
25069
+ WHERE c.contype = 'f'
25070
+ AND t1.relname = 'users'
25071
+ AND t3.nspname = ANY (current_schemas(false))
25072
+ ORDER BY c.conname
25073
+
25074
+  (122.2ms) DROP DATABASE IF EXISTS "mgca_addresses_test"
25075
+  (330.4ms) CREATE DATABASE "mgca_addresses_test" ENCODING = 'unicode'
25076
+ SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
25077
+  (4.7ms) CREATE TABLE "companies" ("id" serial primary key, "name" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
25078
+  (2.5ms) CREATE TABLE "customers" ("id" serial primary key, "name" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
25079
+  (2.5ms) CREATE TABLE "mgca_address_translations" ("id" serial primary key, "mgca_address_id" integer NOT NULL, "locale" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "street_name" character varying)
25080
+  (0.9ms) CREATE INDEX "index_mgca_address_translations_on_locale" ON "mgca_address_translations" USING btree ("locale")
25081
+  (0.7ms) CREATE INDEX "index_mgca_address_translations_on_mgca_address_id" ON "mgca_address_translations" USING btree ("mgca_address_id")
25082
+  (2.4ms) CREATE TABLE "mgca_addresses" ("id" serial primary key, "name" character varying, "fetch_address" text, "street_default" character varying, "street_number" character varying, "street_additional" character varying, "zipcode" integer, "longitude" float, "latitude" float, "subdistrict_id" integer, "district_id" integer, "city_id" integer, "state_id" integer, "country_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "status" character varying DEFAULT 'new') 
25083
+  (0.9ms) CREATE INDEX "index_mgca_addresses_on_city_id" ON "mgca_addresses" USING btree ("city_id")
25084
+  (0.7ms) CREATE INDEX "index_mgca_addresses_on_country_id" ON "mgca_addresses" USING btree ("country_id")
25085
+  (0.7ms) CREATE INDEX "index_mgca_addresses_on_district_id" ON "mgca_addresses" USING btree ("district_id")
25086
+  (0.7ms) CREATE INDEX "index_mgca_addresses_on_state_id" ON "mgca_addresses" USING btree ("state_id")
25087
+  (0.9ms) CREATE INDEX "index_mgca_addresses_on_subdistrict_id" ON "mgca_addresses" USING btree ("subdistrict_id")
25088
+  (2.4ms) CREATE TABLE "mgca_addressibles" ("id" serial primary key, "default" boolean, "name" character varying, "owner_id" integer, "owner_type" character varying, "address_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
25089
+  (0.8ms) CREATE INDEX "index_mgca_addressibles_on_address_id" ON "mgca_addressibles" USING btree ("address_id")
25090
+  (1.0ms) CREATE INDEX "index_mgca_addressibles_on_owner_type_and_owner_id" ON "mgca_addressibles" USING btree ("owner_type", "owner_id")
25091
+  (3.0ms) CREATE TABLE "mgca_cities" ("id" serial primary key, "default_name" character varying, "short_name" character varying, "fsm_state" character varying DEFAULT 'new', "state_id" integer, "country_id" integer, "created_at" timestamp, "updated_at" timestamp)
25092
+  (0.9ms) CREATE INDEX "index_mgca_cities_on_country_id" ON "mgca_cities" USING btree ("country_id")
25093
+  (0.7ms) CREATE INDEX "index_mgca_cities_on_state_id" ON "mgca_cities" USING btree ("state_id")
25094
+  (2.3ms) CREATE TABLE "mgca_city_translations" ("id" serial primary key, "mgca_city_id" integer NOT NULL, "locale" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "name" character varying) 
25095
+  (0.9ms) CREATE INDEX "index_mgca_city_translations_on_locale" ON "mgca_city_translations" USING btree ("locale")
25096
+  (1.2ms) CREATE INDEX "index_mgca_city_translations_on_mgca_city_id" ON "mgca_city_translations" USING btree ("mgca_city_id")
25097
+  (2.5ms) CREATE TABLE "mgca_countries" ("id" serial primary key, "default_name" character varying, "iso_code" character varying(2), "dial_code" character varying, "fsm_state" character varying DEFAULT 'new', "created_at" timestamp, "updated_at" timestamp)
25098
+  (2.3ms) CREATE TABLE "mgca_country_translations" ("id" serial primary key, "mgca_country_id" integer NOT NULL, "locale" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "name" character varying) 
25099
+  (0.7ms) CREATE INDEX "index_mgca_country_translations_on_locale" ON "mgca_country_translations" USING btree ("locale")
25100
+  (0.7ms) CREATE INDEX "index_mgca_country_translations_on_mgca_country_id" ON "mgca_country_translations" USING btree ("mgca_country_id")
25101
+  (2.3ms) CREATE TABLE "mgca_district_translations" ("id" serial primary key, "mgca_district_id" integer NOT NULL, "locale" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "name" character varying)
25102
+  (0.9ms) CREATE INDEX "index_mgca_district_translations_on_locale" ON "mgca_district_translations" USING btree ("locale")
25103
+  (0.8ms) CREATE INDEX "index_mgca_district_translations_on_mgca_district_id" ON "mgca_district_translations" USING btree ("mgca_district_id")
25104
+  (2.3ms) CREATE TABLE "mgca_districts" ("id" serial primary key, "default_name" character varying, "short_name" character varying, "fsm_state" character varying DEFAULT 'new', "city_id" integer, "created_at" timestamp, "updated_at" timestamp) 
25105
+  (0.7ms) CREATE INDEX "index_mgca_districts_on_city_id" ON "mgca_districts" USING btree ("city_id")
25106
+  (2.4ms) CREATE TABLE "mgca_state_translations" ("id" serial primary key, "mgca_state_id" integer NOT NULL, "locale" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "name" character varying) 
25107
+  (1.0ms) CREATE INDEX "index_mgca_state_translations_on_locale" ON "mgca_state_translations" USING btree ("locale")
25108
+  (0.8ms) CREATE INDEX "index_mgca_state_translations_on_mgca_state_id" ON "mgca_state_translations" USING btree ("mgca_state_id")
25109
+  (5.5ms) CREATE TABLE "mgca_states" ("id" serial primary key, "default_name" character varying, "short_name" character varying, "fsm_state" character varying DEFAULT 'new', "country_id" integer, "created_at" timestamp, "updated_at" timestamp)
25110
+  (0.8ms) CREATE INDEX "index_mgca_states_on_country_id" ON "mgca_states" USING btree ("country_id")
25111
+  (2.8ms) CREATE TABLE "mgca_subdistrict_translations" ("id" serial primary key, "mgca_subdistrict_id" integer NOT NULL, "locale" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "name" character varying)
25112
+  (0.8ms) CREATE INDEX "index_mgca_subdistrict_translations_on_locale" ON "mgca_subdistrict_translations" USING btree ("locale")
25113
+  (0.7ms) CREATE INDEX "index_mgca_subdistrict_translations_on_mgca_subdistrict_id" ON "mgca_subdistrict_translations" USING btree ("mgca_subdistrict_id")
25114
+  (2.5ms) CREATE TABLE "mgca_subdistricts" ("id" serial primary key, "default_name" character varying, "short_name" character varying, "fsm_state" character varying DEFAULT 'new', "district_id" integer, "city_id" integer, "created_at" timestamp, "updated_at" timestamp) 
25115
+  (0.9ms) CREATE INDEX "index_mgca_subdistricts_on_city_id" ON "mgca_subdistricts" USING btree ("city_id")
25116
+  (0.7ms) CREATE INDEX "index_mgca_subdistricts_on_district_id" ON "mgca_subdistricts" USING btree ("district_id")
25117
+  (2.4ms) CREATE TABLE "users" ("id" serial primary key, "name" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
25118
+  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
25119
+  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
25120
+  (0.3ms) SELECT version FROM "schema_migrations"
25121
+  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20161013083634')
25122
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213105831')
25123
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20150225220219')
25124
+  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20151111133333')
25125
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20151118102658')
25126
+ ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"
25127
+ Migrating to AddNamedAddresses (20161013102744)
25128
+  (0.2ms) BEGIN
25129
+  (0.8ms) ALTER TABLE "mgca_addressibles" ADD "named_address" character varying
25130
+  (2.0ms) CREATE INDEX "index_mgca_addressibles_on_named_address" ON "mgca_addressibles" ("named_address")
25131
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161013102744"]]
25132
+  (0.4ms) COMMIT
25133
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
25134
+  (1.9ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
25135
+ FROM pg_constraint c
25136
+ JOIN pg_class t1 ON c.conrelid = t1.oid
25137
+ JOIN pg_class t2 ON c.confrelid = t2.oid
25138
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
25139
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
25140
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
25141
+ WHERE c.contype = 'f'
25142
+ AND t1.relname = 'companies'
25143
+ AND t3.nspname = ANY (current_schemas(false))
25144
+ ORDER BY c.conname
25145
+
25146
+  (1.4ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
25147
+ FROM pg_constraint c
25148
+ JOIN pg_class t1 ON c.conrelid = t1.oid
25149
+ JOIN pg_class t2 ON c.confrelid = t2.oid
25150
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
25151
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
25152
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
25153
+ WHERE c.contype = 'f'
25154
+ AND t1.relname = 'customers'
25155
+ AND t3.nspname = ANY (current_schemas(false))
25156
+ ORDER BY c.conname
25157
+ 
25158
+  (1.5ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
25159
+ FROM pg_constraint c
25160
+ JOIN pg_class t1 ON c.conrelid = t1.oid
25161
+ JOIN pg_class t2 ON c.confrelid = t2.oid
25162
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
25163
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
25164
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
25165
+ WHERE c.contype = 'f'
25166
+ AND t1.relname = 'mgca_address_translations'
25167
+ AND t3.nspname = ANY (current_schemas(false))
25168
+ ORDER BY c.conname
25169
+
25170
+  (1.4ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
25171
+ FROM pg_constraint c
25172
+ JOIN pg_class t1 ON c.conrelid = t1.oid
25173
+ JOIN pg_class t2 ON c.confrelid = t2.oid
25174
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
25175
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
25176
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
25177
+ WHERE c.contype = 'f'
25178
+ AND t1.relname = 'mgca_addresses'
25179
+ AND t3.nspname = ANY (current_schemas(false))
25180
+ ORDER BY c.conname
25181
+ 
25182
+  (1.5ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
25183
+ FROM pg_constraint c
25184
+ JOIN pg_class t1 ON c.conrelid = t1.oid
25185
+ JOIN pg_class t2 ON c.confrelid = t2.oid
25186
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
25187
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
25188
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
25189
+ WHERE c.contype = 'f'
25190
+ AND t1.relname = 'mgca_addressibles'
25191
+ AND t3.nspname = ANY (current_schemas(false))
25192
+ ORDER BY c.conname
25193
+
25194
+  (1.4ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
25195
+ FROM pg_constraint c
25196
+ JOIN pg_class t1 ON c.conrelid = t1.oid
25197
+ JOIN pg_class t2 ON c.confrelid = t2.oid
25198
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
25199
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
25200
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
25201
+ WHERE c.contype = 'f'
25202
+ AND t1.relname = 'mgca_cities'
25203
+ AND t3.nspname = ANY (current_schemas(false))
25204
+ ORDER BY c.conname
25205
+ 
25206
+  (1.4ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
25207
+ FROM pg_constraint c
25208
+ JOIN pg_class t1 ON c.conrelid = t1.oid
25209
+ JOIN pg_class t2 ON c.confrelid = t2.oid
25210
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
25211
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
25212
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
25213
+ WHERE c.contype = 'f'
25214
+ AND t1.relname = 'mgca_city_translations'
25215
+ AND t3.nspname = ANY (current_schemas(false))
25216
+ ORDER BY c.conname
25217
+
25218
+  (1.4ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
25219
+ FROM pg_constraint c
25220
+ JOIN pg_class t1 ON c.conrelid = t1.oid
25221
+ JOIN pg_class t2 ON c.confrelid = t2.oid
25222
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
25223
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
25224
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
25225
+ WHERE c.contype = 'f'
25226
+ AND t1.relname = 'mgca_countries'
25227
+ AND t3.nspname = ANY (current_schemas(false))
25228
+ ORDER BY c.conname
25229
+ 
25230
+  (1.4ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
25231
+ FROM pg_constraint c
25232
+ JOIN pg_class t1 ON c.conrelid = t1.oid
25233
+ JOIN pg_class t2 ON c.confrelid = t2.oid
25234
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
25235
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
25236
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
25237
+ WHERE c.contype = 'f'
25238
+ AND t1.relname = 'mgca_country_translations'
25239
+ AND t3.nspname = ANY (current_schemas(false))
25240
+ ORDER BY c.conname
25241
+
25242
+  (1.4ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
25243
+ FROM pg_constraint c
25244
+ JOIN pg_class t1 ON c.conrelid = t1.oid
25245
+ JOIN pg_class t2 ON c.confrelid = t2.oid
25246
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
25247
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
25248
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
25249
+ WHERE c.contype = 'f'
25250
+ AND t1.relname = 'mgca_district_translations'
25251
+ AND t3.nspname = ANY (current_schemas(false))
25252
+ ORDER BY c.conname
25253
+ 
25254
+  (1.4ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
25255
+ FROM pg_constraint c
25256
+ JOIN pg_class t1 ON c.conrelid = t1.oid
25257
+ JOIN pg_class t2 ON c.confrelid = t2.oid
25258
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
25259
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
25260
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
25261
+ WHERE c.contype = 'f'
25262
+ AND t1.relname = 'mgca_districts'
25263
+ AND t3.nspname = ANY (current_schemas(false))
25264
+ ORDER BY c.conname
25265
+
25266
+  (1.4ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
25267
+ FROM pg_constraint c
25268
+ JOIN pg_class t1 ON c.conrelid = t1.oid
25269
+ JOIN pg_class t2 ON c.confrelid = t2.oid
25270
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
25271
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
25272
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
25273
+ WHERE c.contype = 'f'
25274
+ AND t1.relname = 'mgca_state_translations'
25275
+ AND t3.nspname = ANY (current_schemas(false))
25276
+ ORDER BY c.conname
25277
+ 
25278
+  (1.4ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
25279
+ FROM pg_constraint c
25280
+ JOIN pg_class t1 ON c.conrelid = t1.oid
25281
+ JOIN pg_class t2 ON c.confrelid = t2.oid
25282
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
25283
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
25284
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
25285
+ WHERE c.contype = 'f'
25286
+ AND t1.relname = 'mgca_states'
25287
+ AND t3.nspname = ANY (current_schemas(false))
25288
+ ORDER BY c.conname
25289
+
25290
+  (1.4ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
25291
+ FROM pg_constraint c
25292
+ JOIN pg_class t1 ON c.conrelid = t1.oid
25293
+ JOIN pg_class t2 ON c.confrelid = t2.oid
25294
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
25295
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
25296
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
25297
+ WHERE c.contype = 'f'
25298
+ AND t1.relname = 'mgca_subdistrict_translations'
25299
+ AND t3.nspname = ANY (current_schemas(false))
25300
+ ORDER BY c.conname
25301
+ 
25302
+  (1.4ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
25303
+ FROM pg_constraint c
25304
+ JOIN pg_class t1 ON c.conrelid = t1.oid
25305
+ JOIN pg_class t2 ON c.confrelid = t2.oid
25306
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
25307
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
25308
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
25309
+ WHERE c.contype = 'f'
25310
+ AND t1.relname = 'mgca_subdistricts'
25311
+ AND t3.nspname = ANY (current_schemas(false))
25312
+ ORDER BY c.conname
25313
+
25314
+  (1.4ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
25315
+ FROM pg_constraint c
25316
+ JOIN pg_class t1 ON c.conrelid = t1.oid
25317
+ JOIN pg_class t2 ON c.confrelid = t2.oid
25318
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
25319
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
25320
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
25321
+ WHERE c.contype = 'f'
25322
+ AND t1.relname = 'users'
25323
+ AND t3.nspname = ANY (current_schemas(false))
25324
+ ORDER BY c.conname
25325
+ 
25326
+  (126.8ms) DROP DATABASE IF EXISTS "mgca_addresses_test"
25327
+  (236.7ms) CREATE DATABASE "mgca_addresses_test" ENCODING = 'unicode'
25328
+ SQL (0.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
25329
+  (4.5ms) CREATE TABLE "companies" ("id" serial primary key, "name" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
25330
+  (2.5ms) CREATE TABLE "customers" ("id" serial primary key, "name" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
25331
+  (2.8ms) CREATE TABLE "mgca_address_translations" ("id" serial primary key, "mgca_address_id" integer NOT NULL, "locale" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "street_name" character varying)
25332
+  (1.2ms) CREATE INDEX "index_mgca_address_translations_on_locale" ON "mgca_address_translations" USING btree ("locale")
25333
+  (0.8ms) CREATE INDEX "index_mgca_address_translations_on_mgca_address_id" ON "mgca_address_translations" USING btree ("mgca_address_id")
25334
+  (3.0ms) CREATE TABLE "mgca_addresses" ("id" serial primary key, "name" character varying, "fetch_address" text, "street_default" character varying, "street_number" character varying, "street_additional" character varying, "zipcode" integer, "longitude" float, "latitude" float, "subdistrict_id" integer, "district_id" integer, "city_id" integer, "state_id" integer, "country_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "status" character varying DEFAULT 'new') 
25335
+  (0.8ms) CREATE INDEX "index_mgca_addresses_on_city_id" ON "mgca_addresses" USING btree ("city_id")
25336
+  (0.7ms) CREATE INDEX "index_mgca_addresses_on_country_id" ON "mgca_addresses" USING btree ("country_id")
25337
+  (0.7ms) CREATE INDEX "index_mgca_addresses_on_district_id" ON "mgca_addresses" USING btree ("district_id")
25338
+  (0.8ms) CREATE INDEX "index_mgca_addresses_on_state_id" ON "mgca_addresses" USING btree ("state_id")
25339
+  (0.8ms) CREATE INDEX "index_mgca_addresses_on_subdistrict_id" ON "mgca_addresses" USING btree ("subdistrict_id")
25340
+  (2.3ms) CREATE TABLE "mgca_addressibles" ("id" serial primary key, "default" boolean, "name" character varying, "owner_id" integer, "owner_type" character varying, "address_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "named_address" character varying) 
25341
+  (0.7ms) CREATE INDEX "index_mgca_addressibles_on_address_id" ON "mgca_addressibles" USING btree ("address_id")
25342
+  (0.7ms) CREATE INDEX "index_mgca_addressibles_on_named_address" ON "mgca_addressibles" USING btree ("named_address")
25343
+  (0.8ms) CREATE INDEX "index_mgca_addressibles_on_owner_type_and_owner_id" ON "mgca_addressibles" USING btree ("owner_type", "owner_id")
25344
+  (2.4ms) CREATE TABLE "mgca_cities" ("id" serial primary key, "default_name" character varying, "short_name" character varying, "fsm_state" character varying DEFAULT 'new', "state_id" integer, "country_id" integer, "created_at" timestamp, "updated_at" timestamp) 
25345
+  (0.7ms) CREATE INDEX "index_mgca_cities_on_country_id" ON "mgca_cities" USING btree ("country_id")
25346
+  (0.7ms) CREATE INDEX "index_mgca_cities_on_state_id" ON "mgca_cities" USING btree ("state_id")
25347
+  (2.4ms) CREATE TABLE "mgca_city_translations" ("id" serial primary key, "mgca_city_id" integer NOT NULL, "locale" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "name" character varying)
25348
+  (1.1ms) CREATE INDEX "index_mgca_city_translations_on_locale" ON "mgca_city_translations" USING btree ("locale")
25349
+  (0.7ms) CREATE INDEX "index_mgca_city_translations_on_mgca_city_id" ON "mgca_city_translations" USING btree ("mgca_city_id")
25350
+  (2.6ms) CREATE TABLE "mgca_countries" ("id" serial primary key, "default_name" character varying, "iso_code" character varying(2), "dial_code" character varying, "fsm_state" character varying DEFAULT 'new', "created_at" timestamp, "updated_at" timestamp) 
25351
+  (2.7ms) CREATE TABLE "mgca_country_translations" ("id" serial primary key, "mgca_country_id" integer NOT NULL, "locale" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "name" character varying)
25352
+  (1.0ms) CREATE INDEX "index_mgca_country_translations_on_locale" ON "mgca_country_translations" USING btree ("locale")
25353
+  (0.7ms) CREATE INDEX "index_mgca_country_translations_on_mgca_country_id" ON "mgca_country_translations" USING btree ("mgca_country_id")
25354
+  (2.4ms) CREATE TABLE "mgca_district_translations" ("id" serial primary key, "mgca_district_id" integer NOT NULL, "locale" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "name" character varying) 
25355
+  (0.7ms) CREATE INDEX "index_mgca_district_translations_on_locale" ON "mgca_district_translations" USING btree ("locale")
25356
+  (0.8ms) CREATE INDEX "index_mgca_district_translations_on_mgca_district_id" ON "mgca_district_translations" USING btree ("mgca_district_id")
25357
+  (3.2ms) CREATE TABLE "mgca_districts" ("id" serial primary key, "default_name" character varying, "short_name" character varying, "fsm_state" character varying DEFAULT 'new', "city_id" integer, "created_at" timestamp, "updated_at" timestamp)
25358
+  (0.7ms) CREATE INDEX "index_mgca_districts_on_city_id" ON "mgca_districts" USING btree ("city_id")
25359
+  (2.4ms) CREATE TABLE "mgca_state_translations" ("id" serial primary key, "mgca_state_id" integer NOT NULL, "locale" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "name" character varying)
25360
+  (0.8ms) CREATE INDEX "index_mgca_state_translations_on_locale" ON "mgca_state_translations" USING btree ("locale")
25361
+  (0.7ms) CREATE INDEX "index_mgca_state_translations_on_mgca_state_id" ON "mgca_state_translations" USING btree ("mgca_state_id")
25362
+  (2.5ms) CREATE TABLE "mgca_states" ("id" serial primary key, "default_name" character varying, "short_name" character varying, "fsm_state" character varying DEFAULT 'new', "country_id" integer, "created_at" timestamp, "updated_at" timestamp) 
25363
+  (0.8ms) CREATE INDEX "index_mgca_states_on_country_id" ON "mgca_states" USING btree ("country_id")
25364
+  (2.4ms) CREATE TABLE "mgca_subdistrict_translations" ("id" serial primary key, "mgca_subdistrict_id" integer NOT NULL, "locale" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "name" character varying) 
25365
+  (0.8ms) CREATE INDEX "index_mgca_subdistrict_translations_on_locale" ON "mgca_subdistrict_translations" USING btree ("locale")
25366
+  (0.8ms) CREATE INDEX "index_mgca_subdistrict_translations_on_mgca_subdistrict_id" ON "mgca_subdistrict_translations" USING btree ("mgca_subdistrict_id")
25367
+  (3.4ms) CREATE TABLE "mgca_subdistricts" ("id" serial primary key, "default_name" character varying, "short_name" character varying, "fsm_state" character varying DEFAULT 'new', "district_id" integer, "city_id" integer, "created_at" timestamp, "updated_at" timestamp)
25368
+  (1.0ms) CREATE INDEX "index_mgca_subdistricts_on_city_id" ON "mgca_subdistricts" USING btree ("city_id")
25369
+  (1.0ms) CREATE INDEX "index_mgca_subdistricts_on_district_id" ON "mgca_subdistricts" USING btree ("district_id")
25370
+  (3.3ms) CREATE TABLE "users" ("id" serial primary key, "name" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
25371
+  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)
25372
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
25373
+  (0.3ms) SELECT version FROM "schema_migrations"
25374
+  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20161013102744')
25375
+  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213105831')
25376
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20150225220219')
25377
+  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20151111133333')
25378
+  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20151118102658')
25379
+  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20161013083634')