item_models 0.0.3 → 0.0.4

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
  SHA256:
3
- metadata.gz: e3c71347c285a7703860f412a56533fd48f5bfee54937b3db065f8297debd054
4
- data.tar.gz: 82a0f0634bc58f1cb4d0a5e7278fb10dd65d8c8c7876208b9854cc7c8d9082f7
3
+ metadata.gz: f51bf19bf4a1bbab4541178986357a7d2b82d870f666c2f19cf76bc8ad85f1ab
4
+ data.tar.gz: 3e892f03c1d1e39f8d4c4637f2508156603bec1c1dd61b973c9c60985a49797c
5
5
  SHA512:
6
- metadata.gz: a21edafacd7f8878d97160965758eab907fb38d91e4ed4bb76b011cc846b9f81b2081208e16be80c4a03ca754caaa65b444866ac079fe940dfa8ae61bac3a0b2
7
- data.tar.gz: b23436b47922eb3cbd7f4fe772752c76a7e6fdd8e60f653fa8bdaabac7b320b9465552e205ca1671d08d133d9a53afdf0eabbb87dea81b8dc52b450ca0d60f52
6
+ metadata.gz: 7c2f0e7687ca7311c408ba16b589a4d7b86939397af734f1f418d48150d7094f1fb012dee8564e1dd60770ea97bb7ac340ea8a22cf0ccdcdebbdd05904cbba5e
7
+ data.tar.gz: d8bf91c8f782c1303038fbb8e5779697074c77c67de77731931532060649896b483dc57dba209756ab90f246b6cd20229448357fa3bc468f92e76360696895d5
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ItemModels
4
- VERSION = '0.0.3'
4
+ VERSION = '0.0.4'
5
5
  end
@@ -1,5 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class Activity < ApplicationRecord
4
+ establish_connection ActiveRecord::Base.configurations.fetch('item_model')
4
5
  self.table_name = 'item_activities'
5
6
  end
@@ -1,5 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class AvailabilityOption < ApplicationRecord
4
+ establish_connection ActiveRecord::Base.configurations.fetch('item_model')
4
5
  self.table_name = 'item_availability_options'
5
6
  end
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class Bundle < ApplicationRecord
4
+ establish_connection ActiveRecord::Base.configurations.fetch('item_model')
4
5
  self.table_name = 'item_bundles'
5
6
 
6
7
  belongs_to :variant
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class BundleVariant < ApplicationRecord
4
+ establish_connection ActiveRecord::Base.configurations.fetch('item_model')
4
5
  self.table_name = 'item_bundle_variants'
5
6
 
6
7
  belongs_to :bundle
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class Image < ApplicationRecord
4
+ establish_connection ActiveRecord::Base.configurations.fetch('item_model')
4
5
  self.table_name = 'item_images'
5
6
 
6
7
  belongs_to :item
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class Item < ApplicationRecord
4
+ establish_connection ActiveRecord::Base.configurations.fetch('item_model')
4
5
  has_many :variants
5
6
  has_many :item_listings
6
7
  has_many :bundles
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class ItemListing < ApplicationRecord
4
+ establish_connection ActiveRecord::Base.configurations.fetch('item_model')
4
5
  self.table_name = 'item_channel_associations'
5
6
  belongs_to :item
6
7
  has_many :variant_listings, foreign_key: :channel_association_id
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class ItemListingBrand < ApplicationRecord
4
+ establish_connection ActiveRecord::Base.configurations.fetch('item_model')
4
5
  self.table_name = 'item_channel_association_brands'
5
6
 
6
7
  belongs_to :item_listing, foreign_key: :channel_association_id
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class ItemListingCategory < ApplicationRecord
4
+ establish_connection ActiveRecord::Base.configurations.fetch('item_model')
4
5
  self.table_name = 'item_channel_association_categories'
5
6
 
6
7
  belongs_to :item_listing, foreign_key: :channel_association_id
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class ItemListingCustomField < ApplicationRecord
4
+ establish_connection ActiveRecord::Base.configurations.fetch('item_model')
4
5
  self.table_name = 'item_channel_association_custom_fields'
5
6
 
6
7
  belongs_to :item_listing, foreign_key: :channel_association_id
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class ItemListingImage < ApplicationRecord
4
+ establish_connection ActiveRecord::Base.configurations.fetch('item_model')
4
5
  self.table_name = 'item_channel_association_images'
5
6
  belongs_to :image
6
7
  belongs_to :item_listing, foreign_key: :channel_association_id
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class ItemListingVariantCustomField < ApplicationRecord
4
+ establish_connection ActiveRecord::Base.configurations.fetch('item_model')
4
5
  self.table_name = 'item_channel_association_variant_images'
5
6
 
6
7
  belongs_to :item_listing, foreign_key: :channel_association_id
@@ -1,5 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class ItemListingVariantImage < ApplicationRecord
4
+ establish_connection ActiveRecord::Base.configurations.fetch('item_model')
4
5
  self.table_name = 'item_channel_association_variant_images'
5
6
  end
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class MasterCatalog < ApplicationRecord
4
+ establish_connection ActiveRecord::Base.configurations.fetch('item_model')
4
5
  self.table_name = 'item_variant_master_assocs'
5
6
 
6
7
  belongs_to :variant
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class MasterCatalogImage < ApplicationRecord
4
+ establish_connection ActiveRecord::Base.configurations.fetch('item_model')
4
5
  self.table_name = 'item_variant_master_image_assocs'
5
6
 
6
7
  belongs_to :master_catalog, foreign_key: :master_assoc_id
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class Variant < ApplicationRecord
4
+ establish_connection ActiveRecord::Base.configurations.fetch('item_model')
4
5
  self.table_name = 'item_variants'
5
6
  belongs_to :item
6
7
  has_many :variant_images, foreign_key: :item_variant_id
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class VariantImage < ApplicationRecord
4
+ establish_connection ActiveRecord::Base.configurations.fetch('item_model')
4
5
  self.table_name = 'item_variant_images'
5
6
 
6
7
  belongs_to :image
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class VariantListing < ApplicationRecord
4
+ establish_connection ActiveRecord::Base.configurations.fetch('item_model')
4
5
  self.table_name = 'item_channel_association_variant_associations'
5
6
 
6
7
  belongs_to :variant
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class VariantListingPriceHistory < ApplicationRecord
4
+ establish_connection ActiveRecord::Base.configurations.fetch('item_model')
4
5
  self.table_name = 'item_channel_association_variant_association_stock_allocations'
5
6
 
6
7
  belongs_to :variant_listing, foreign_key: :variant_association_id
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class VariantListingStockAllocation < ApplicationRecord
4
+ establish_connection ActiveRecord::Base.configurations.fetch('item_model')
4
5
  self.table_name = 'item_channel_association_variant_association_stock_allocations'
5
6
 
6
7
  belongs_to :variant_listing, foreign_key: :variant_association_id
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class VariantOption < ApplicationRecord
4
+ establish_connection ActiveRecord::Base.configurations.fetch('item_model')
4
5
  self.table_name = 'item_variant_options'
5
6
 
6
7
  has_many :variant_option_associations, foreign_key: :option_id
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class VariantOptionAssociation < ApplicationRecord
4
+ establish_connection ActiveRecord::Base.configurations.fetch('item_model')
4
5
  self.table_name = 'item_variant_option_associations'
5
6
 
6
7
  belongs_to :variant_option, foreign_key: :option_id
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: item_models
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - alexander
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-02-06 00:00:00.000000000 Z
11
+ date: 2020-02-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler