Class: Shopifydev::ProductCacheGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Shopifydev::ProductCacheGenerator
- Defined in:
- lib/rails/generators/shopifydev/product_cache_generator.rb
Instance Method Summary collapse
Instance Method Details
#generate_product_cache ⇒ Object
8 9 10 |
# File 'lib/rails/generators/shopifydev/product_cache_generator.rb', line 8 def generate_product_cache generate 'migration ProductCache shop:references shopify_product_id:integer shopify_title:string shopify_handle:string shopify_product_type:string shopify_vendor:string shopify_updated_at:datetime' end |
#generate_worker ⇒ Object
12 13 14 15 |
# File 'lib/rails/generators/shopifydev/product_cache_generator.rb', line 12 def generate_worker template "sidekiq_status_initializer.rb", 'config/initializers/sidekiq_status_initializer.rb' template "product_cache_updater.rb", "app/workers/product_cache_updater.rb" end |