rawgento_models 0.4.1 → 0.4.2

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: 9cc546bbaf1fb83441b5799793dc28d7a863a114
4
- data.tar.gz: f95499f44eab07c48d14a66898a15d9f91b31d5f
3
+ metadata.gz: 72acc264a018c44314488205ea69cb260d561371
4
+ data.tar.gz: 5e249e77f0cb7f4a0b28ccf9bda703b20cf96c62
5
5
  SHA512:
6
- metadata.gz: a78bfff041e26cc38646bf08e3ef8e4adab9c0d8f7618bcaa215912b9d4ec00322097300a5aaf29a59d764489131d7e91a525e1ffdc478c57cb7f9fe209465e6
7
- data.tar.gz: c293ef86d8a3e600f050b2289a8672848ec257dc47b658e56812566c0a766b595502f105e7fe185a282de62375da9c7443fcb237c1f167128575d6f0d45d65c4
6
+ metadata.gz: 078db421d2abcdfacfef3e0c1d882647a2c2b308bdb538eb58bf5409510e273e423acd11901adb11653aef98b094920581bd1681ea305a7d10e6c843c03f36a4
7
+ data.tar.gz: 4b30b748f4d6993e6b131ce21f71be77bf8a5ea2930b73e4ab4e07c98be5a0d2e5e0c7b7e3628072a764bbff9b8f57360d6e9379689b50e4d111760888323d81
@@ -0,0 +1,5 @@
1
+ class AddIndexToOrderItems < ActiveRecord::Migration
2
+ def change
3
+ add_index :order_items, :order_id
4
+ end
5
+ end
data/db/schema.rb CHANGED
@@ -11,22 +11,22 @@
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: 201608102000) do
14
+ ActiveRecord::Schema.define(version: 201608190700) do
15
15
 
16
16
  create_table "local_products", force: :cascade do |t|
17
17
  t.string "name"
18
18
  t.integer "product_id"
19
- t.datetime "created_at", null: false
20
- t.datetime "updated_at", null: false
19
+ t.datetime "created_at", null: false
20
+ t.datetime "updated_at", null: false
21
21
  t.string "shelve_nr"
22
22
  t.integer "packsize"
23
- t.boolean "hidden", default: true
23
+ t.boolean "hidden", default: false, null: false
24
24
  t.integer "supplier_id"
25
25
  t.string "supplier_sku"
26
26
  t.string "supplier_prod_name"
27
27
  t.decimal "purchase_price"
28
28
  t.text "order_info"
29
- t.boolean "active"
29
+ t.boolean "active", default: true, null: false
30
30
  end
31
31
 
32
32
  add_index "local_products", ["product_id"], name: "index_local_products_on_product_id", unique: true
@@ -46,6 +46,7 @@ ActiveRecord::Schema.define(version: 201608102000) do
46
46
  end
47
47
 
48
48
  add_index "order_items", ["local_product_id"], name: "index_order_items_on_local_product_id"
49
+ add_index "order_items", ["order_id"], name: "index_order_items_on_order_id"
49
50
 
50
51
  create_table "orders", force: :cascade do |t|
51
52
  t.string "state", default: "new"
@@ -1,3 +1,3 @@
1
1
  module RawgentoModels
2
- VERSION = "0.4.1".freeze
2
+ VERSION = "0.4.2".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rawgento_models
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felix Wolfsteller
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-08-10 00:00:00.000000000 Z
11
+ date: 2016-08-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -117,6 +117,7 @@ files:
117
117
  - db/migrate/201608081500_add_remote_order_link_to_orders.rb
118
118
  - db/migrate/201608081515_add_order_method_to_orders.rb
119
119
  - db/migrate/201608102000_add_hidden_to_local_products.rb
120
+ - db/migrate/201608190700_add_index_to_order_items.rb
120
121
  - db/schema.rb
121
122
  - exe/rawgento_models
122
123
  - lib/rawgento_models.rb