spree_billing_sisow 0.9.0 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +26 -0
- data/README.md +54 -0
- data/app/assets/javascripts/spree/backend/spree_billing_sisow.js +0 -0
- data/app/assets/javascripts/spree/frontend/spree_billing_sisow.js +0 -0
- data/app/assets/stylesheets/spree/backend/spree_billing_sisow.css +0 -0
- data/app/assets/stylesheets/spree/frontend/spree_billing_sisow.css +0 -0
- data/app/controllers/spree/admin/sisow_controller.rb +22 -0
- data/app/controllers/spree/checkout_controller_decorator.rb +70 -0
- data/app/controllers/spree/sisow_status_controller.rb +18 -0
- data/app/models/spree/app_configuration_decorator.rb +7 -0
- data/app/models/spree/billing_integration.rb +38 -0
- data/app/models/spree/payment_method/sisow_billing/bancontact.rb +9 -0
- data/app/models/spree/payment_method/sisow_billing/creditcard.rb +9 -0
- data/app/models/spree/payment_method/sisow_billing/ideal.rb +14 -0
- data/app/models/spree/payment_method/sisow_billing/paypalec.rb +9 -0
- data/app/models/spree/payment_method/sisow_billing/purchase.rb +19 -0
- data/app/models/spree/payment_method/sisow_billing/sisow_payment_method.rb +24 -0
- data/app/models/spree/payment_method/sisow_billing/sofort.rb +9 -0
- data/app/models/spree/payment_method/sisow_billing.rb +123 -0
- data/app/models/spree/sisow_transaction.rb +10 -0
- data/app/overrides/admin_decorator.rb +6 -0
- data/app/views/spree/admin/payments/source_forms/_bancontact.html.erb +8 -0
- data/app/views/spree/admin/payments/source_forms/_ideal.html.erb +8 -0
- data/app/views/spree/admin/payments/source_forms/_paypalec.html.erb +8 -0
- data/app/views/spree/admin/payments/source_forms/_sofort.html.erb +8 -0
- data/app/views/spree/admin/payments/source_views/_bancontact.html.erb +33 -0
- data/app/views/spree/admin/payments/source_views/_ideal.html.erb +33 -0
- data/app/views/spree/admin/payments/source_views/_sofort.html.erb +33 -0
- data/app/views/spree/admin/shared/_configurations_menu_sisow.html.erb +1 -0
- data/app/views/spree/admin/sisow/_form.html.erb +42 -0
- data/app/views/spree/admin/sisow/edit.html.erb +5 -0
- data/app/views/spree/checkout/payment/_bancontact.html.erb +1 -0
- data/app/views/spree/checkout/payment/_creditcard.html.erb +1 -0
- data/app/views/spree/checkout/payment/_ideal.html.erb +6 -0
- data/app/views/spree/checkout/payment/_paypalec.html.erb +1 -0
- data/app/views/spree/checkout/payment/_sofort.html.erb +1 -0
- data/config/locales/en.yml +16 -0
- data/config/locales/nl.yml +16 -0
- data/config/routes.rb +17 -0
- data/db/migrate/20130525124432_create_sisow_transactions.rb +14 -0
- data/db/migrate/20130527131828_add_transaction_type_to_sisow_transactions.rb +7 -0
- data/db/migrate/20150417081217_change_name_of_payment_method_types.rb +24 -0
- data/lib/generators/spree_billing_sisow/install/install_generator.rb +21 -0
- data/lib/spree_billing_sisow/engine.rb +33 -0
- data/lib/spree_billing_sisow/factories.rb +6 -0
- data/lib/spree_billing_sisow.rb +2 -0
- data/spec/controllers/spree/sisow_status_controller_spec.rb +70 -0
- data/spec/dummy/README.md +24 -0
- data/spec/dummy/Rakefile +6 -0
- data/spec/dummy/app/assets/config/manifest.js +3 -0
- data/spec/dummy/app/assets/javascripts/cable.js +13 -0
- data/spec/dummy/app/assets/stylesheets/application.css +15 -0
- data/spec/dummy/app/channels/application_cable/channel.rb +4 -0
- data/spec/dummy/app/channels/application_cable/connection.rb +4 -0
- data/spec/dummy/app/controllers/application_controller.rb +2 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/jobs/application_job.rb +2 -0
- data/spec/dummy/app/mailers/application_mailer.rb +4 -0
- data/spec/dummy/app/models/application_record.rb +3 -0
- data/spec/dummy/app/models/spree/dummy_model.rb +6 -0
- data/spec/dummy/app/views/layouts/application.html.erb +15 -0
- data/spec/dummy/app/views/layouts/mailer.html.erb +13 -0
- data/spec/dummy/app/views/layouts/mailer.text.erb +1 -0
- data/spec/dummy/bin/bundle +3 -0
- data/spec/dummy/bin/rails +4 -0
- data/spec/dummy/bin/rake +4 -0
- data/spec/dummy/bin/setup +33 -0
- data/spec/dummy/bin/update +28 -0
- data/spec/dummy/config/application.rb +54 -0
- data/spec/dummy/config/boot.rb +6 -0
- data/spec/dummy/config/cable.yml +10 -0
- data/spec/dummy/config/credentials.yml.enc +1 -0
- data/spec/dummy/config/database.yml +16 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +61 -0
- data/spec/dummy/config/environments/production.rb +94 -0
- data/spec/dummy/config/environments/test.rb +38 -0
- data/spec/dummy/config/initializers/application_controller_renderer.rb +8 -0
- data/spec/dummy/config/initializers/assets.rb +12 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/content_security_policy.rb +25 -0
- data/spec/dummy/config/initializers/cookies_serializer.rb +5 -0
- data/spec/dummy/config/initializers/devise.rb +3 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy/config/initializers/inflections.rb +16 -0
- data/spec/dummy/config/initializers/mime_types.rb +4 -0
- data/spec/dummy/config/initializers/spree.rb +30 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +33 -0
- data/spec/dummy/config/master.key +1 -0
- data/spec/dummy/config/puma.rb +34 -0
- data/spec/dummy/config/routes.rb +11 -0
- data/spec/dummy/config/storage.yml +34 -0
- data/spec/dummy/config.ru +5 -0
- data/spec/dummy/db/migrate/20190729091650_create_active_storage_tables.active_storage.rb +27 -0
- data/spec/dummy/db/migrate/20190729091651_spree_one_two.spree.rb +482 -0
- data/spec/dummy/db/migrate/20190729091652_spree_promo_one_two.spree.rb +46 -0
- data/spec/dummy/db/migrate/20190729091653_add_tax_rate_label.spree.rb +6 -0
- data/spec/dummy/db/migrate/20190729091654_add_toggle_tax_rate_display.spree.rb +6 -0
- data/spec/dummy/db/migrate/20190729091655_remove_unused_preference_columns.spree.rb +9 -0
- data/spec/dummy/db/migrate/20190729091656_add_lock_version_to_variant.spree.rb +6 -0
- data/spec/dummy/db/migrate/20190729091657_add_states_required_to_countries.spree.rb +6 -0
- data/spec/dummy/db/migrate/20190729091658_add_on_demand_to_product_and_variant.spree.rb +7 -0
- data/spec/dummy/db/migrate/20190729091659_remove_not_null_constraint_from_products_on_hand.spree.rb +12 -0
- data/spec/dummy/db/migrate/20190729091660_split_prices_from_variants.spree.rb +32 -0
- data/spec/dummy/db/migrate/20190729091661_remove_not_null_from_spree_prices_amount.spree.rb +10 -0
- data/spec/dummy/db/migrate/20190729091662_add_currency_to_line_items.spree.rb +6 -0
- data/spec/dummy/db/migrate/20190729091663_add_currency_to_orders.spree.rb +6 -0
- data/spec/dummy/db/migrate/20190729091664_add_cost_currency_to_variants.spree.rb +6 -0
- data/spec/dummy/db/migrate/20190729091665_remove_display_on_from_payment_methods.spree.rb +6 -0
- data/spec/dummy/db/migrate/20190729091666_add_position_to_taxonomies.spree.rb +6 -0
- data/spec/dummy/db/migrate/20190729091667_add_last_ip_to_spree_orders.spree.rb +6 -0
- data/spec/dummy/db/migrate/20190729091668_add_state_to_spree_adjustments.spree.rb +7 -0
- data/spec/dummy/db/migrate/20190729091669_add_display_on_to_spree_payment_methods.spree.rb +10 -0
- data/spec/dummy/db/migrate/20190729091670_add_position_to_product_properties.spree.rb +7 -0
- data/spec/dummy/db/migrate/20190729091671_add_identifier_to_spree_payments.spree.rb +6 -0
- data/spec/dummy/db/migrate/20190729091672_add_order_id_index_to_payments.spree.rb +10 -0
- data/spec/dummy/db/migrate/20190729091673_add_primary_to_spree_products_taxons.spree.rb +6 -0
- data/spec/dummy/db/migrate/20190729091674_create_spree_stock_items.spree.rb +15 -0
- data/spec/dummy/db/migrate/20190729091675_create_spree_stock_locations.spree.rb +12 -0
- data/spec/dummy/db/migrate/20190729091676_create_default_stock.spree.rb +34 -0
- data/spec/dummy/db/migrate/20190729091677_add_order_id_index_to_shipments.spree.rb +6 -0
- data/spec/dummy/db/migrate/20190729091678_change_meta_description_on_spree_products_to_text.spree.rb +6 -0
- data/spec/dummy/db/migrate/20190729091679_add_stock_location_id_to_spree_shipments.spree.rb +6 -0
- data/spec/dummy/db/migrate/20190729091680_add_pending_to_inventory_unit.spree.rb +7 -0
- data/spec/dummy/db/migrate/20190729091681_remove_on_demand_from_product_and_variant.spree.rb +7 -0
- data/spec/dummy/db/migrate/20190729091682_create_shipping_method_zone.spree.rb +22 -0
- data/spec/dummy/db/migrate/20190729091683_remove_shipping_category_id_from_shipping_method.spree.rb +6 -0
- data/spec/dummy/db/migrate/20190729091684_create_shipping_method_categories.spree.rb +14 -0
- data/spec/dummy/db/migrate/20190729091685_add_tracking_url_to_spree_shipping_methods.spree.rb +6 -0
- data/spec/dummy/db/migrate/20190729091686_create_spree_shipping_rates.spree.rb +25 -0
- data/spec/dummy/db/migrate/20190729091687_remove_category_match_attributes_from_shipping_method.spree.rb +8 -0
- data/spec/dummy/db/migrate/20190729091688_create_stock_movements.spree.rb +13 -0
- data/spec/dummy/db/migrate/20190729091689_add_address_fields_to_stock_location.spree.rb +23 -0
- data/spec/dummy/db/migrate/20190729091690_add_active_field_to_stock_locations.spree.rb +6 -0
- data/spec/dummy/db/migrate/20190729091691_add_backorderable_to_stock_item.spree.rb +6 -0
- data/spec/dummy/db/migrate/20190729091692_add_default_quantity_to_stock_movement.spree.rb +6 -0
- data/spec/dummy/db/migrate/20190729091693_add_source_and_destination_to_stock_movements.spree.rb +9 -0
- data/spec/dummy/db/migrate/20190729091694_change_orders_total_precision.spree.rb +9 -0
- data/spec/dummy/db/migrate/20190729091695_change_spree_payments_amount_precision.spree.rb +8 -0
- data/spec/dummy/db/migrate/20190729091696_change_spree_return_authorization_amount_precision.spree.rb +8 -0
- data/spec/dummy/db/migrate/20190729091697_change_adjustments_amount_precision.spree.rb +8 -0
- data/spec/dummy/db/migrate/20190729091698_add_originator_to_stock_movement.spree.rb +8 -0
- data/spec/dummy/db/migrate/20190729091699_drop_source_and_destination_from_stock_movement.spree.rb +16 -0
- data/spec/dummy/db/migrate/20190729091700_migrate_inventory_unit_sold_to_on_hand.spree.rb +10 -0
- data/spec/dummy/db/migrate/20190729091701_add_stock_location_to_rma.spree.rb +6 -0
- data/spec/dummy/db/migrate/20190729091702_update_shipment_state_for_canceled_orders.spree.rb +16 -0
- data/spec/dummy/db/migrate/20190729091703_add_seo_metas_to_taxons.spree.rb +10 -0
- data/spec/dummy/db/migrate/20190729091704_remove_stock_item_and_variant_lock.spree.rb +15 -0
- data/spec/dummy/db/migrate/20190729091705_add_name_to_spree_credit_cards.spree.rb +6 -0
- data/spec/dummy/db/migrate/20190729091706_update_name_fields_on_spree_credit_cards.spree.rb +14 -0
- data/spec/dummy/db/migrate/20190729091707_add_index_to_source_columns_on_adjustments.spree.rb +6 -0
- data/spec/dummy/db/migrate/20190729091708_update_adjustment_states.spree.rb +17 -0
- data/spec/dummy/db/migrate/20190729091709_add_shipping_rates_to_shipments.spree.rb +16 -0
- data/spec/dummy/db/migrate/20190729091710_create_spree_stock_transfers.spree.rb +15 -0
- data/spec/dummy/db/migrate/20190729091711_drop_products_count_on_hand.spree.rb +6 -0
- data/spec/dummy/db/migrate/20190729091712_set_default_shipping_rate_cost.spree.rb +6 -0
- data/spec/dummy/db/migrate/20190729091713_add_number_to_stock_transfer.spree.rb +24 -0
- data/spec/dummy/db/migrate/20190729091714_add_sku_index_to_spree_variants.spree.rb +6 -0
- data/spec/dummy/db/migrate/20190729091715_add_backorderable_default_to_spree_stock_location.spree.rb +6 -0
- data/spec/dummy/db/migrate/20190729091716_add_propage_all_variants_to_spree_stock_location.spree.rb +6 -0
- data/spec/dummy/db/migrate/20190729091717_rename_shipping_methods_zones_to_spree_shipping_methods_zones.spree.rb +6 -0
- data/spec/dummy/db/migrate/20190729091718_add_user_id_index_to_spree_orders.spree.rb +6 -0
- data/spec/dummy/db/migrate/20190729091719_add_updated_at_to_spree_countries.spree.rb +10 -0
- data/spec/dummy/db/migrate/20190729091720_add_updated_at_to_spree_states.spree.rb +10 -0
- data/spec/dummy/db/migrate/20190729091721_add_cvv_result_code_and_cvv_result_message_to_spree_payments.spree.rb +7 -0
- data/spec/dummy/db/migrate/20190729091722_add_unique_index_to_permalink_on_spree_products.spree.rb +6 -0
- data/spec/dummy/db/migrate/20190729091723_add_unique_index_to_orders_shipments_and_stock_transfers.spree.rb +8 -0
- data/spec/dummy/db/migrate/20190729091724_add_deleted_at_to_spree_tax_rates.spree.rb +6 -0
- data/spec/dummy/db/migrate/20190729091725_remove_lock_version_from_inventory_units.spree.rb +7 -0
- data/spec/dummy/db/migrate/20190729091726_add_cost_price_to_line_item.spree.rb +6 -0
- data/spec/dummy/db/migrate/20190729091727_set_backorderable_to_default_to_false.spree.rb +7 -0
- data/spec/dummy/db/migrate/20190729091728_add_created_by_id_to_spree_orders.spree.rb +6 -0
- data/spec/dummy/db/migrate/20190729091729_index_completed_at_on_spree_orders.spree.rb +6 -0
- data/spec/dummy/db/migrate/20190729091730_add_tax_category_id_to_spree_line_items.spree.rb +6 -0
- data/spec/dummy/db/migrate/20190729091731_migrate_tax_categories_to_line_items.spree.rb +11 -0
- data/spec/dummy/db/migrate/20190729091732_drop_spree_mail_methods.spree.rb +13 -0
- data/spec/dummy/db/migrate/20190729091733_set_default_stock_location_on_shipments.spree.rb +9 -0
- data/spec/dummy/db/migrate/20190729091734_upgrade_adjustments.spree.rb +47 -0
- data/spec/dummy/db/migrate/20190729091735_rename_adjustment_fields.spree.rb +21 -0
- data/spec/dummy/db/migrate/20190729091736_add_admin_name_column_to_spree_shipping_methods.spree.rb +6 -0
- data/spec/dummy/db/migrate/20190729091737_add_admin_name_column_to_spree_stock_locations.spree.rb +6 -0
- data/spec/dummy/db/migrate/20190729091738_add_shipment_total_to_spree_orders.spree.rb +6 -0
- data/spec/dummy/db/migrate/20190729091739_expand_order_number_size.spree.rb +10 -0
- data/spec/dummy/db/migrate/20190729091740_rename_activators_to_promotions.spree.rb +6 -0
- data/spec/dummy/db/migrate/20190729091741_add_adjustment_total_to_line_items.spree.rb +6 -0
- data/spec/dummy/db/migrate/20190729091742_add_adjustment_total_to_shipments.spree.rb +6 -0
- data/spec/dummy/db/migrate/20190729091743_add_depth_to_spree_taxons.spree.rb +17 -0
- data/spec/dummy/db/migrate/20190729091744_add_tax_total_to_line_items_shipments_and_orders.spree.rb +9 -0
- data/spec/dummy/db/migrate/20190729091745_add_shipping_category_to_shipping_methods_and_products.spree.rb +16 -0
- data/spec/dummy/db/migrate/20190729091746_migrate_old_shipping_calculators.spree.rb +20 -0
- data/spec/dummy/db/migrate/20190729091747_add_code_to_spree_promotion_rules.spree.rb +6 -0
- data/spec/dummy/db/migrate/20190729091748_change_states_required_for_countries.spree.rb +10 -0
- data/spec/dummy/db/migrate/20190729091749_add_deleted_at_to_spree_stock_items.spree.rb +6 -0
- data/spec/dummy/db/migrate/20190729091750_remove_promotions_event_name_field.spree.rb +6 -0
- data/spec/dummy/db/migrate/20190729091751_add_promo_total_to_line_items_and_shipments_and_orders.spree.rb +8 -0
- data/spec/dummy/db/migrate/20190729091752_remove_unused_credit_card_fields.spree.rb +17 -0
- data/spec/dummy/db/migrate/20190729091753_add_track_inventory_to_variant.spree.rb +6 -0
- data/spec/dummy/db/migrate/20190729091754_add_tax_category_to_variants.spree.rb +7 -0
- data/spec/dummy/db/migrate/20190729091755_add_channel_to_spree_orders.spree.rb +6 -0
- data/spec/dummy/db/migrate/20190729091756_add_included_to_adjustments.spree.rb +6 -0
- data/spec/dummy/db/migrate/20190729091757_rename_tax_total_fields.spree.rb +12 -0
- data/spec/dummy/db/migrate/20190729091758_add_line_item_id_to_spree_inventory_units.spree.rb +22 -0
- data/spec/dummy/db/migrate/20190729091759_add_updated_at_to_variants.spree.rb +6 -0
- data/spec/dummy/db/migrate/20190729091760_add_position_to_classifications.spree.rb +6 -0
- data/spec/dummy/db/migrate/20190729091761_create_spree_orders_promotions.spree.rb +9 -0
- data/spec/dummy/db/migrate/20190729091762_unique_shipping_method_categories.spree.rb +25 -0
- data/spec/dummy/db/migrate/20190729091763_add_item_count_to_spree_orders.spree.rb +6 -0
- data/spec/dummy/db/migrate/20190729091764_remove_value_type_from_spree_preferences.spree.rb +9 -0
- data/spec/dummy/db/migrate/20190729091765_rename_permalink_to_slug_for_products.spree.rb +6 -0
- data/spec/dummy/db/migrate/20190729091766_add_index_to_variant_id_and_currency_on_prices.spree.rb +6 -0
- data/spec/dummy/db/migrate/20190729091767_rename_activator_id_in_rules_and_actions_to_promotion_id.spree.rb +7 -0
- data/spec/dummy/db/migrate/20190729091768_add_deleted_at_to_spree_prices.spree.rb +6 -0
- data/spec/dummy/db/migrate/20190729091769_add_approver_id_and_approved_at_to_orders.spree.rb +7 -0
- data/spec/dummy/db/migrate/20190729091770_add_confirmation_delivered_to_spree_orders.spree.rb +6 -0
- data/spec/dummy/db/migrate/20190729091771_add_auto_capture_to_payment_methods.spree.rb +6 -0
- data/spec/dummy/db/migrate/20190729091772_create_spree_payment_capture_events.spree.rb +13 -0
- data/spec/dummy/db/migrate/20190729091773_add_uncaptured_amount_to_payments.spree.rb +6 -0
- data/spec/dummy/db/migrate/20190729091774_default_variant_weight_to_zero.spree.rb +12 -0
- data/spec/dummy/db/migrate/20190729091775_add_tax_category_id_to_shipping_methods.spree.rb +6 -0
- data/spec/dummy/db/migrate/20190729091776_add_tax_rate_id_to_shipping_rates.spree.rb +6 -0
- data/spec/dummy/db/migrate/20190729091777_add_pre_tax_amount_to_line_items_and_shipments.spree.rb +7 -0
- data/spec/dummy/db/migrate/20190729091778_add_more_indexes.spree.rb +14 -0
- data/spec/dummy/db/migrate/20190729091779_add_considered_risky_to_orders.spree.rb +6 -0
- data/spec/dummy/db/migrate/20190729091780_add_preference_store_to_everything.spree.rb +9 -0
- data/spec/dummy/db/migrate/20190729091781_add_user_id_to_spree_credit_cards.spree.rb +14 -0
- data/spec/dummy/db/migrate/20190729091782_migrate_old_preferences.spree.rb +28 -0
- data/spec/dummy/db/migrate/20190729091783_create_spree_stores.spree.rb +26 -0
- data/spec/dummy/db/migrate/20190729091784_create_store_from_preferences.spree.rb +38 -0
- data/spec/dummy/db/migrate/20190729091785_add_timestamps_to_spree_assets.spree.rb +7 -0
- data/spec/dummy/db/migrate/20190729091786_create_spree_taxons_promotion_rules.spree.rb +9 -0
- data/spec/dummy/db/migrate/20190729091787_add_additional_store_fields.spree.rb +9 -0
- data/spec/dummy/db/migrate/20190729091788_add_many_missing_indexes.spree.rb +19 -0
- data/spec/dummy/db/migrate/20190729091789_correct_some_polymorphic_index_and_add_more_missing.spree.rb +67 -0
- data/spec/dummy/db/migrate/20190729091790_add_user_id_created_by_id_index_to_order.spree.rb +6 -0
- data/spec/dummy/db/migrate/20190729091791_change_spree_price_amount_precision.spree.rb +9 -0
- data/spec/dummy/db/migrate/20190729091792_add_token_to_spree_orders.spree.rb +6 -0
- data/spec/dummy/db/migrate/20190729091793_move_order_token_from_tokenized_permission.spree.rb +30 -0
- data/spec/dummy/db/migrate/20190729091794_set_shipment_total_for_users_upgrading.spree.rb +11 -0
- data/spec/dummy/db/migrate/20190729091795_drop_credit_card_first_name_and_last_name.spree.rb +7 -0
- data/spec/dummy/db/migrate/20190729091796_add_deleted_at_to_spree_promotion_actions.spree.rb +7 -0
- data/spec/dummy/db/migrate/20190729091797_remove_uncaptured_amount_from_spree_payments.spree.rb +6 -0
- data/spec/dummy/db/migrate/20190729091798_create_spree_refunds.spree.rb +13 -0
- data/spec/dummy/db/migrate/20190729091799_create_spree_return_authorization_inventory_unit.spree.rb +13 -0
- data/spec/dummy/db/migrate/20190729091800_rename_return_authorization_inventory_unit_to_return_items.spree.rb +6 -0
- data/spec/dummy/db/migrate/20190729091801_backfill_line_item_pre_tax_amount.spree.rb +11 -0
- data/spec/dummy/db/migrate/20190729091802_recreate_spree_return_authorizations.spree.rb +56 -0
- data/spec/dummy/db/migrate/20190729091803_add_amount_fields_to_return_items.spree.rb +8 -0
- data/spec/dummy/db/migrate/20190729091804_drop_return_authorization_amount.spree.rb +6 -0
- data/spec/dummy/db/migrate/20190729091805_create_spree_return_authorization_reasons.spree.rb +29 -0
- data/spec/dummy/db/migrate/20190729091806_create_spree_refund_reasons.spree.rb +15 -0
- data/spec/dummy/db/migrate/20190729091807_rename_return_authorization_reason.spree.rb +6 -0
- data/spec/dummy/db/migrate/20190729091808_create_spree_promotion_categories.spree.rb +12 -0
- data/spec/dummy/db/migrate/20190729091809_drop_received_at_on_return_items.spree.rb +10 -0
- data/spec/dummy/db/migrate/20190729091810_add_reception_and_acceptance_status_to_return_items.spree.rb +7 -0
- data/spec/dummy/db/migrate/20190729091811_create_default_refund_reason.spree.rb +10 -0
- data/spec/dummy/db/migrate/20190729091812_add_default_to_spree_stock_locations.spree.rb +8 -0
- data/spec/dummy/db/migrate/20190729091813_create_spree_customer_returns.spree.rb +10 -0
- data/spec/dummy/db/migrate/20190729091814_add_customer_return_id_to_return_item.spree.rb +7 -0
- data/spec/dummy/db/migrate/20190729091815_create_friendly_id_slugs.spree.rb +16 -0
- data/spec/dummy/db/migrate/20190729091816_rename_spree_refund_return_authorization_id.spree.rb +6 -0
- data/spec/dummy/db/migrate/20190729091817_increase_return_item_pre_tax_amount_precision.spree.rb +14 -0
- data/spec/dummy/db/migrate/20190729091818_copy_product_slugs_to_slug_history.spree.rb +16 -0
- data/spec/dummy/db/migrate/20190729091819_create_spree_reimbursements.spree.rb +22 -0
- data/spec/dummy/db/migrate/20190729091820_add_promotionable_to_spree_products.spree.rb +6 -0
- data/spec/dummy/db/migrate/20190729091821_add_exchange_inventory_unit_foreign_keys.spree.rb +8 -0
- data/spec/dummy/db/migrate/20190729091822_add_acceptance_status_errors_to_return_item.spree.rb +6 -0
- data/spec/dummy/db/migrate/20190729091823_create_spree_reimbursement_types.spree.rb +21 -0
- data/spec/dummy/db/migrate/20190729091824_add_default_to_shipment_cost.spree.rb +11 -0
- data/spec/dummy/db/migrate/20190729091825_add_default_to_spree_credit_cards.spree.rb +6 -0
- data/spec/dummy/db/migrate/20190729091826_make_existing_credit_cards_default.spree.rb +11 -0
- data/spec/dummy/db/migrate/20190729091827_add_type_to_reimbursement_type.spree.rb +10 -0
- data/spec/dummy/db/migrate/20190729091828_create_spree_reimbursement_credits.spree.rb +11 -0
- data/spec/dummy/db/migrate/20190729091829_add_meta_title_to_spree_products.spree.rb +8 -0
- data/spec/dummy/db/migrate/20190729091830_add_kind_to_zone.spree.rb +12 -0
- data/spec/dummy/db/migrate/20190729091831_add_code_to_spree_tax_categories.spree.rb +6 -0
- data/spec/dummy/db/migrate/20190729091832_default_pre_tax_amount_should_be_zero.spree.rb +7 -0
- data/spec/dummy/db/migrate/20190729091833_add_code_to_spree_shipping_methods.spree.rb +6 -0
- data/spec/dummy/db/migrate/20190729091834_add_cancel_audit_fields_to_spree_orders.spree.rb +7 -0
- data/spec/dummy/db/migrate/20190729091835_add_store_id_to_orders.spree.rb +9 -0
- data/spec/dummy/db/migrate/20190729091836_create_spree_taxons_prototypes.spree.rb +9 -0
- data/spec/dummy/db/migrate/20190729091837_add_state_lock_version_to_order.spree.rb +6 -0
- data/spec/dummy/db/migrate/20190729091838_add_counter_cache_from_spree_variants_to_spree_stock_items.spree.rb +9 -0
- data/spec/dummy/db/migrate/20190729091839_fix_adjustment_order_presence.spree.rb +14 -0
- data/spec/dummy/db/migrate/20190729091840_update_classifications_positions.spree.rb +10 -0
- data/spec/dummy/db/migrate/20190729091841_add_guest_token_index_to_spree_orders.spree.rb +6 -0
- data/spec/dummy/db/migrate/20190729091842_remove_token_permissions_table.spree.rb +7 -0
- data/spec/dummy/db/migrate/20190729091843_remove_extra_products_slug_index.spree.rb +6 -0
- data/spec/dummy/db/migrate/20190729091844_update_product_slug_index.spree.rb +7 -0
- data/spec/dummy/db/migrate/20190729091845_rename_identifier_to_number_for_payment.spree.rb +6 -0
- data/spec/dummy/db/migrate/20190729091846_create_spree_store_credits.spree.rb +25 -0
- data/spec/dummy/db/migrate/20190729091847_create_spree_store_credit_categories.spree.rb +9 -0
- data/spec/dummy/db/migrate/20190729091848_create_spree_store_credit_events.spree.rb +18 -0
- data/spec/dummy/db/migrate/20190729091849_create_spree_store_credit_types.spree.rb +11 -0
- data/spec/dummy/db/migrate/20190729091850_remove_environment_from_payment_method.spree.rb +7 -0
- data/spec/dummy/db/migrate/20190729091851_add_resellable_to_return_items.spree.rb +6 -0
- data/spec/dummy/db/migrate/20190729091852_add_code_to_spree_promotion_categories.spree.rb +6 -0
- data/spec/dummy/db/migrate/20190729091853_remove_environment_from_tracker.spree.rb +9 -0
- data/spec/dummy/db/migrate/20190729091854_remove_spree_configurations.spree.rb +17 -0
- data/spec/dummy/db/migrate/20190729091855_add_index_to_spree_stock_items_variant_id.spree.rb +14 -0
- data/spec/dummy/db/migrate/20190729091856_ensure_payments_have_numbers.spree.rb +14 -0
- data/spec/dummy/db/migrate/20190729091857_add_missing_indexes_on_spree_tables.spree.rb +68 -0
- data/spec/dummy/db/migrate/20190729091858_remove_duplicated_indexes_from_multi_columns.spree.rb +19 -0
- data/spec/dummy/db/migrate/20190729091859_remove_user_index_from_spree_state_changes.spree.rb +15 -0
- data/spec/dummy/db/migrate/20190729091860_fix_adjustment_order_id.spree.rb +71 -0
- data/spec/dummy/db/migrate/20190729091861_add_position_to_spree_payment_methods.spree.rb +6 -0
- data/spec/dummy/db/migrate/20190729091862_add_deleted_at_to_friendly_id_slugs.spree.rb +7 -0
- data/spec/dummy/db/migrate/20190729091863_increase_scale_on_pre_tax_amounts.spree.rb +17 -0
- data/spec/dummy/db/migrate/20190729091864_add_taxable_adjustment_total_to_line_item.spree.rb +20 -0
- data/spec/dummy/db/migrate/20190729091865_migrate_payment_methods_display.spree.rb +13 -0
- data/spec/dummy/db/migrate/20190729091866_enable_acts_as_paranoid_on_calculators.spree.rb +7 -0
- data/spec/dummy/db/migrate/20190729091867_spree_payment_method_store_credits.spree.rb +13 -0
- data/spec/dummy/db/migrate/20190729091868_rename_has_and_belongs_to_associations_to_model_names.spree.rb +19 -0
- data/spec/dummy/db/migrate/20190729091869_spree_store_credit_types.spree.rb +12 -0
- data/spec/dummy/db/migrate/20190729091870_add_discontinued_to_products_and_variants.spree.rb +69 -0
- data/spec/dummy/db/migrate/20190729091871_remove_shipping_method_id_from_spree_orders.spree.rb +14 -0
- data/spec/dummy/db/migrate/20190729091872_add_id_column_to_earlier_habtm_tables.spree.rb +17 -0
- data/spec/dummy/db/migrate/20190729091873_add_indexes.spree.rb +15 -0
- data/spec/dummy/db/migrate/20190729091874_remove_counter_cache_from_spree_variants_to_spree_stock_items.spree.rb +11 -0
- data/spec/dummy/db/migrate/20190729091875_acts_as_taggable_on_spree_migration.spree.rb +41 -0
- data/spec/dummy/db/migrate/20190729091876_change_collation_for_spree_tag_names.spree.rb +10 -0
- data/spec/dummy/db/migrate/20190729091877_add_missing_indexes_to_spree_taggings.spree.rb +15 -0
- data/spec/dummy/db/migrate/20190729091878_add_zipcode_required_to_spree_countries.spree.rb +8 -0
- data/spec/dummy/db/migrate/20190729091879_add_created_at_to_variant.spree.rb +9 -0
- data/spec/dummy/db/migrate/20190729091880_add_null_false_to_spree_variants_timestamps.spree.rb +7 -0
- data/spec/dummy/db/migrate/20190729091881_add_quantity_to_inventory_units.spree.rb +6 -0
- data/spec/dummy/db/migrate/20190729091882_add_original_return_item_id_to_spree_inventory_units.spree.rb +30 -0
- data/spec/dummy/db/migrate/20190729091883_add_unique_index_on_number_to_spree_orders.spree.rb +17 -0
- data/spec/dummy/db/migrate/20190729091884_add_unique_index_on_number_to_spree_stock_transfer.spree.rb +17 -0
- data/spec/dummy/db/migrate/20190729091885_add_unique_index_on_number_to_spree_shipment.spree.rb +17 -0
- data/spec/dummy/db/migrate/20190729091886_add_unique_index_on_number_to_spree_payments.spree.rb +18 -0
- data/spec/dummy/db/migrate/20190729091887_add_unique_index_on_number_to_spree_return_authorizations.spree.rb +17 -0
- data/spec/dummy/db/migrate/20190729091888_add_unique_index_on_number_to_spree_customer_returns.spree.rb +17 -0
- data/spec/dummy/db/migrate/20190729091889_add_unique_index_on_number_to_spree_reimbursements.spree.rb +17 -0
- data/spec/dummy/db/migrate/20190729091890_add_missing_unique_indexes_for_unique_attributes.spree.rb +38 -0
- data/spec/dummy/db/migrate/20190729091891_add_index_on_stock_location_to_spree_customer_returns.spree.rb +6 -0
- data/spec/dummy/db/migrate/20190729091892_add_index_on_prototype_to_spree_option_type_prototype.spree.rb +20 -0
- data/spec/dummy/db/migrate/20190729091893_add_indexes_to_spree_option_value_variant.spree.rb +20 -0
- data/spec/dummy/db/migrate/20190729091894_add_index_on_promotion_id_to_order_promotions.spree.rb +6 -0
- data/spec/dummy/db/migrate/20190729091895_add_indexes_for_property_prototype.spree.rb +21 -0
- data/spec/dummy/db/migrate/20190729091896_add_index_for_prototype_id_to_prototype_taxons.spree.rb +6 -0
- data/spec/dummy/db/migrate/20190729091897_add_indexes_to_refunds.spree.rb +7 -0
- data/spec/dummy/db/migrate/20190729091898_add_indexes_to_reimbursement_credits.spree.rb +7 -0
- data/spec/dummy/db/migrate/20190729091899_add_indexes_to_return_authorizations.spree.rb +7 -0
- data/spec/dummy/db/migrate/20190729091900_add_indexes_to_return_items.spree.rb +12 -0
- data/spec/dummy/db/migrate/20190729091901_add_index_to_role_users.spree.rb +19 -0
- data/spec/dummy/db/migrate/20190729091902_add_index_to_shipping_method_categories.spree.rb +6 -0
- data/spec/dummy/db/migrate/20190729091903_add_index_to_shipping_method_zones.spree.rb +21 -0
- data/spec/dummy/db/migrate/20190729091904_add_index_to_spree_shipping_rates.spree.rb +7 -0
- data/spec/dummy/db/migrate/20190729091905_add_index_to_spree_stock_items.spree.rb +6 -0
- data/spec/dummy/db/migrate/20190729091906_add_index_to_spree_stock_movement.spree.rb +6 -0
- data/spec/dummy/db/migrate/20190729091907_change_indexes_on_friendly_id_slugs.spree.rb +11 -0
- data/spec/dummy/db/migrate/20190729091908_add_analytics_kind_to_spree_trackers.spree.rb +6 -0
- data/spec/dummy/db/migrate/20190729091909_rename_tracker_kind_field.spree.rb +6 -0
- data/spec/dummy/db/migrate/20190729091910_remove_icon_from_taxons.spree.rb +9 -0
- data/spec/dummy/db/migrate/20190729091911_add_unique_index_on_spree_promotions_code.spree.rb +7 -0
- data/spec/dummy/db/migrate/20190729091912_rename_guest_token_to_token_in_orders.spree.rb +6 -0
- data/spec/dummy/db/migrate/20190729091913_add_timestamps_to_spree_prices.spree.rb +13 -0
- data/spec/dummy/db/migrate/20190729091914_add_deleted_at_to_spree_credit_cards.spree.rb +7 -0
- data/spec/dummy/db/migrate/20190729091915_create_users.spree_auth.rb +30 -0
- data/spec/dummy/db/migrate/20190729091916_rename_columns_for_devise.spree_auth.rb +38 -0
- data/spec/dummy/db/migrate/20190729091917_convert_user_remember_field.spree_auth.rb +12 -0
- data/spec/dummy/db/migrate/20190729091918_add_reset_password_sent_at_to_spree_users.spree_auth.rb +9 -0
- data/spec/dummy/db/migrate/20190729091919_make_users_email_index_unique.spree_auth.rb +10 -0
- data/spec/dummy/db/migrate/20190729091920_add_deleted_at_to_users.spree_auth.rb +7 -0
- data/spec/dummy/db/migrate/20190729091921_add_confirmable_to_users.spree_auth.rb +8 -0
- data/spec/dummy/db/migrate/20190729091922_add_missing_indices_on_user.spree_auth.rb +11 -0
- data/spec/dummy/db/migrate/20190729091923_create_sisow_transactions.spree_billing_sisow.rb +15 -0
- data/spec/dummy/db/migrate/20190729091924_add_transaction_type_to_sisow_transactions.spree_billing_sisow.rb +8 -0
- data/spec/dummy/db/migrate/20190729091925_change_name_of_payment_method_types.spree_billing_sisow.rb +25 -0
- data/spec/dummy/db/migrate/20190729091926_add_api_key_to_spree_users.spree_api.rb +8 -0
- data/spec/dummy/db/migrate/20190729091927_resize_api_key_field.spree_api.rb +8 -0
- data/spec/dummy/db/migrate/20190729091928_rename_api_key_to_spree_api_key.spree_api.rb +8 -0
- data/spec/dummy/db/migrate/20190729091929_add_index_to_user_spree_api_key.spree_api.rb +8 -0
- data/spec/dummy/db/migrate/20190729091930_create_doorkeeper_tables.spree_api.rb +70 -0
- data/spec/dummy/db/migrate/20190729091931_create_spree_dummy_models.rb +10 -0
- data/spec/dummy/db/schema.rb +1141 -0
- data/spec/dummy/db/seeds.rb +10 -0
- data/spec/dummy/db/spree_test.sqlite3 +0 -0
- data/spec/dummy/log/test.log +60773 -0
- data/spec/dummy/public/404.html +67 -0
- data/spec/dummy/public/422.html +67 -0
- data/spec/dummy/public/500.html +66 -0
- data/spec/dummy/public/apple-touch-icon-precomposed.png +0 -0
- data/spec/dummy/public/apple-touch-icon.png +0 -0
- data/spec/dummy/public/assets/admin/logo-80200db37ace2294842fdb8cadf550b3681426b5551d89ad8fc4c0a53249d729.png +0 -0
- data/spec/dummy/public/assets/application-f0d704deea029cf000697e2c0181ec173a1b474645466ed843eb5ee7bb215794.css +16 -0
- data/spec/dummy/public/assets/application-f0d704deea029cf000697e2c0181ec173a1b474645466ed843eb5ee7bb215794.css.gz +0 -0
- data/spec/dummy/public/assets/bootstrap/glyphicons-halflings-regular-13634da87d9e23f8c3ed9108ce1724d183a39ad072e73e1b3d8cbf646d2d0407.eot +0 -0
- data/spec/dummy/public/assets/bootstrap/glyphicons-halflings-regular-13634da87d9e23f8c3ed9108ce1724d183a39ad072e73e1b3d8cbf646d2d0407.eot.gz +0 -0
- data/spec/dummy/public/assets/bootstrap/glyphicons-halflings-regular-42f60659d265c1a3c30f9fa42abcbb56bd4a53af4d83d316d6dd7a36903c43e5.svg +288 -0
- data/spec/dummy/public/assets/bootstrap/glyphicons-halflings-regular-42f60659d265c1a3c30f9fa42abcbb56bd4a53af4d83d316d6dd7a36903c43e5.svg.gz +0 -0
- data/spec/dummy/public/assets/bootstrap/glyphicons-halflings-regular-a26394f7ede100ca118eff2eda08596275a9839b959c226e15439557a5a80742.woff +0 -0
- data/spec/dummy/public/assets/bootstrap/glyphicons-halflings-regular-e395044093757d82afcb138957d06a1ea9361bdcf0b442d06a18a8051af57456.ttf +0 -0
- data/spec/dummy/public/assets/bootstrap/glyphicons-halflings-regular-e395044093757d82afcb138957d06a1ea9361bdcf0b442d06a18a8051af57456.ttf.gz +0 -0
- data/spec/dummy/public/assets/bootstrap/glyphicons-halflings-regular-fe185d11a49676890d47bb783312a0cda5a44c4039214094e7957b4c040ef11c.woff2 +0 -0
- data/spec/dummy/public/assets/credit_cards/amex_cid-110b3c8694faccb08f6c0e150833efd218b6fe420fdca7175e3551c8bd4b925e.gif +0 -0
- data/spec/dummy/public/assets/credit_cards/credit_card-5ca047adf17e2e7fdd101d108b2ac90178b4ccb32d02628ce723bb14ccb9bcea.gif +0 -0
- data/spec/dummy/public/assets/credit_cards/discover_cid-a3047727fc48922fb60924d854938c44924fe3580e89b22e07afc00d6fd6cc69.gif +0 -0
- data/spec/dummy/public/assets/credit_cards/icons/american_express-bddd7ca01fc4468e3c198995040f060ee885cf3bf7dfd4525717c4457d518ed2.png +0 -0
- data/spec/dummy/public/assets/credit_cards/icons/cirrus-4f875cd1f8b69d983eae94789064e64beee80a3d00d01c2407ef80ec4333bab5.png +0 -0
- data/spec/dummy/public/assets/credit_cards/icons/delta-f8058ef2e9c52116978902e28d578c11d37b50f58c2ae20c05f431d483f34d79.png +0 -0
- data/spec/dummy/public/assets/credit_cards/icons/diners_club-106b815730e7585d6fdf2899aa341979235406c82efcb489ed889ffc96cde880.png +0 -0
- data/spec/dummy/public/assets/credit_cards/icons/directdebit-b02eaf68946ab2547eb63e884e749bff74ce3f7b4e54710d63efb930968d9f84.png +0 -0
- data/spec/dummy/public/assets/credit_cards/icons/discover-7657f566fa8ab8b930fa2a1fa90caf0c5d5430afbd1b23425471cc29fc95c48a.png +0 -0
- data/spec/dummy/public/assets/credit_cards/icons/egold-7fa5daf64d696d244c6e1d8847c1823c30934ac9ce2772d44622d150b0ab36c6.png +0 -0
- data/spec/dummy/public/assets/credit_cards/icons/jcb-226f02afb616c5cc05c6e1c14cfa511f2484ea5212fe84864fd84e337707de3e.png +0 -0
- data/spec/dummy/public/assets/credit_cards/icons/maestro-04253c601b66912deff0ee2a481c9bcf9154b8965ea4a52761db273fdff70144.png +0 -0
- data/spec/dummy/public/assets/credit_cards/icons/master-c93be9b003aa2d00eabb76e6ae9bfd3412548da8b64606e4a552c945934b45c2.png +0 -0
- data/spec/dummy/public/assets/credit_cards/icons/paypal-f85bbab879c983e0a969228fc30f9a6b8bf3897e82e519968c0c81368c0d0c96.png +0 -0
- data/spec/dummy/public/assets/credit_cards/icons/solo-91b1d214eaa7c8cbbc1509f628c325f265e226053d1de40702e4ef32435cc71f.png +0 -0
- data/spec/dummy/public/assets/credit_cards/icons/switch-808fe60a28ba3b4e4ebb41a712434d1fc0f5ae7d16b3fb290cd63d8e315c0975.png +0 -0
- data/spec/dummy/public/assets/credit_cards/icons/visa-601f8c5e3262bae9694d84d6859e1f99f8f4c8c03f08456183b80ea19c469054.png +0 -0
- data/spec/dummy/public/assets/credit_cards/icons/visaelectron-6ac6e40b7af2dedd1ee0aad0665fae12f2ebf690c8421fe0f24141d02643be75.png +0 -0
- data/spec/dummy/public/assets/credit_cards/icons/westernunion-5060c8fc7fe0efd1d05f9f39ea85d87d9117f7d8ac92de1fc7acdd740cbef338.png +0 -0
- data/spec/dummy/public/assets/credit_cards/icons/wirecard-0570018a538835cb2b0f0ab5ae72cc4b01661d0369c1b9977318a914509d4139.png +0 -0
- data/spec/dummy/public/assets/credit_cards/icons/worldpay-114e072092625fad239074dd7851848fdc7529e548145fa7ec6e564dbb2056a6.png +0 -0
- data/spec/dummy/public/assets/credit_cards/master_cid-aebcf5a0020689ae243e0b8c31da62d8801c1d071bfe0c7c97528fc298abbf96.jpg +0 -0
- data/spec/dummy/public/assets/credit_cards/visa_cid-0c885c2d8c5795439e23387124fcd92b7f330589a755c13c78556d19657d9c14.gif +0 -0
- data/spec/dummy/public/assets/doorkeeper/admin/application-a644908e7bab54fb749be0f59fb64a7480bbf9c4c2b79d4a65791cb7ab4d8730.css +18 -0
- data/spec/dummy/public/assets/doorkeeper/admin/application-a644908e7bab54fb749be0f59fb64a7480bbf9c4c2b79d4a65791cb7ab4d8730.css.gz +0 -0
- data/spec/dummy/public/assets/doorkeeper/application-c93dac2ad9d65e3393e0e2c958481e86ef7a5e5b0f6ce406842a7b99b25a4850.css +83 -0
- data/spec/dummy/public/assets/doorkeeper/application-c93dac2ad9d65e3393e0e2c958481e86ef7a5e5b0f6ce406842a7b99b25a4850.css.gz +0 -0
- data/spec/dummy/public/assets/favicon-92e86d463e909754599d66730477622cd3dd0b9bff58c47c9c38bebceb8073e5.ico +0 -0
- data/spec/dummy/public/assets/favicon-92e86d463e909754599d66730477622cd3dd0b9bff58c47c9c38bebceb8073e5.ico.gz +0 -0
- data/spec/dummy/public/assets/jquery-ui/ui-icons_444444_256x240-31d988765b4e6f56553c29588c500381dc3e6f0aa2980c8212202e5644aefd5d.png +0 -0
- data/spec/dummy/public/assets/jquery-ui/ui-icons_555555_256x240-32175261daee76c82bb0edf0eea16a56421866fbc31e94f3c1d570aa114502f5.png +0 -0
- data/spec/dummy/public/assets/jquery-ui/ui-icons_777620_256x240-0b020fc6e696d88d296e7bb1f61f1eb2ad827848e2c7382a4c3e0999e702dd9b.png +0 -0
- data/spec/dummy/public/assets/jquery-ui/ui-icons_777777_256x240-faf32007ae120c302213557626e660dd10e711c5dd4f1113d35f26dc05b78d2f.png +0 -0
- data/spec/dummy/public/assets/jquery-ui/ui-icons_cc0000_256x240-40985a64b4d5dd213fba27fcd862a1bd1b337a97674f6ff0b9ec20abcee4bc69.png +0 -0
- data/spec/dummy/public/assets/jquery-ui/ui-icons_ffffff_256x240-350df1b7131037de20e83c5c0f3a41a770d2ac48b5762ea772b3f4a8a7b9d47a.png +0 -0
- data/spec/dummy/public/assets/jquery.jstree/themes/spree/style-2470eb16445ffbdc7a49f4d003d39aa0362a27d31f983631067ad1a198ec9440.css +144 -0
- data/spec/dummy/public/assets/jquery.jstree/themes/spree/style-2470eb16445ffbdc7a49f4d003d39aa0362a27d31f983631067ad1a198ec9440.css.gz +0 -0
- data/spec/dummy/public/assets/jquery.jstree/themes/spree/throbber-4e4d43ccac9f0ed6eb6f48ea2b00e10a578b68df0e162df6c4c19d2c9725c04b.gif +0 -0
- data/spec/dummy/public/assets/logo/spree_50-0ae687ccd486b63b01687b1df9e5394430f6fce3ab40c28250b179be4363ddc1.png +0 -0
- data/spec/dummy/public/assets/noimage/large-fe154e843e2b66339f5460ae669c9a6307224a451ed6ba86479c8bf9837ede96.png +0 -0
- data/spec/dummy/public/assets/noimage/mini-d5d987414566f22657bbe0b08a980ddb4230d156845a31ab3cad0a0825016ce8.png +0 -0
- data/spec/dummy/public/assets/noimage/product-fe154e843e2b66339f5460ae669c9a6307224a451ed6ba86479c8bf9837ede96.png +0 -0
- data/spec/dummy/public/assets/noimage/small-1eaf254c069b00a8a692912bddd1660da5f1f80ac202c6bdc4d81b40fd2e0792.png +0 -0
- data/spec/dummy/public/assets/select2-d6b5d8d83dbc18fb8d77c8761d331cd9e5123c9684950bab0406e98a24ac5ae8.png +0 -0
- data/spec/dummy/public/assets/select2-spinner-f6ecff617ec2ba7f559e6f535cad9b70a3f91120737535dab4d4548a6c83576c.gif +0 -0
- data/spec/dummy/public/assets/select2_locale_ar-bc0d626cff33032b13b9d8be220714308a915ac598183fbeafd6a69d2e69685f.js +20 -0
- data/spec/dummy/public/assets/select2_locale_ar-bc0d626cff33032b13b9d8be220714308a915ac598183fbeafd6a69d2e69685f.js.gz +0 -0
- data/spec/dummy/public/assets/select2_locale_az-17ed2058772cfa1896093f5d59dc7031dc5fc2e539c55d8085fa1e68d3fcd927.js +21 -0
- data/spec/dummy/public/assets/select2_locale_az-17ed2058772cfa1896093f5d59dc7031dc5fc2e539c55d8085fa1e68d3fcd927.js.gz +0 -0
- data/spec/dummy/public/assets/select2_locale_bg-42c546b39ddf465f36571419fd70bb4f6e44ca4bba6443f8dc62228121441f49.js +21 -0
- data/spec/dummy/public/assets/select2_locale_bg-42c546b39ddf465f36571419fd70bb4f6e44ca4bba6443f8dc62228121441f49.js.gz +0 -0
- data/spec/dummy/public/assets/select2_locale_ca-b9b0ff178adfc196bc79779e5e641069f376b9ec7ee3f3e2836c5df71511eea8.js +20 -0
- data/spec/dummy/public/assets/select2_locale_ca-b9b0ff178adfc196bc79779e5e641069f376b9ec7ee3f3e2836c5df71511eea8.js.gz +0 -0
- data/spec/dummy/public/assets/select2_locale_cs-27b95541bf7f4e2155d0f0cdc7af062aac217a807b348036c417eea70b0a2897.js +52 -0
- data/spec/dummy/public/assets/select2_locale_cs-27b95541bf7f4e2155d0f0cdc7af062aac217a807b348036c417eea70b0a2897.js.gz +0 -0
- data/spec/dummy/public/assets/select2_locale_da-0772bb942f0ec472cd18b49adcfaf7bab125b32648e0759016ae6e39ea417f0a.js +20 -0
- data/spec/dummy/public/assets/select2_locale_da-0772bb942f0ec472cd18b49adcfaf7bab125b32648e0759016ae6e39ea417f0a.js.gz +0 -0
- data/spec/dummy/public/assets/select2_locale_de-7ca5c4c1e6d14a86b68592e8e11974657602388c7745f8f7e3a1e4510614be7e.js +19 -0
- data/spec/dummy/public/assets/select2_locale_de-7ca5c4c1e6d14a86b68592e8e11974657602388c7745f8f7e3a1e4510614be7e.js.gz +0 -0
- data/spec/dummy/public/assets/select2_locale_el-48bf3eef5ba982cb3ff1b70638a91c5ac1860fbc336728eb810f1f7fd1fd9812.js +20 -0
- data/spec/dummy/public/assets/select2_locale_el-48bf3eef5ba982cb3ff1b70638a91c5ac1860fbc336728eb810f1f7fd1fd9812.js.gz +0 -0
- data/spec/dummy/public/assets/select2_locale_es-c055394ecd38af8b84f490a20ff6291780ab22b123d88457d8338868db2a329d.js +18 -0
- data/spec/dummy/public/assets/select2_locale_es-c055394ecd38af8b84f490a20ff6291780ab22b123d88457d8338868db2a329d.js.gz +0 -0
- data/spec/dummy/public/assets/select2_locale_et-cda4d2bc92439ee6207db832ea34fca366cf2119268b755023cc4861da6d7df9.js +20 -0
- data/spec/dummy/public/assets/select2_locale_et-cda4d2bc92439ee6207db832ea34fca366cf2119268b755023cc4861da6d7df9.js.gz +0 -0
- data/spec/dummy/public/assets/select2_locale_eu-b6732998ea9a29f182c344889e9de5cf0a3d8e9e839ebdc5ce4aee3f293af1d8.js +46 -0
- data/spec/dummy/public/assets/select2_locale_eu-b6732998ea9a29f182c344889e9de5cf0a3d8e9e839ebdc5ce4aee3f293af1d8.js.gz +0 -0
- data/spec/dummy/public/assets/select2_locale_fa-d98464510d779afc9e003a282b93000caff3b66d3f9fef5fe54df44ea9732909.js +22 -0
- data/spec/dummy/public/assets/select2_locale_fa-d98464510d779afc9e003a282b93000caff3b66d3f9fef5fe54df44ea9732909.js.gz +0 -0
- data/spec/dummy/public/assets/select2_locale_fi-d3aca88f97706ace6062209f688e77f477f4ba66541a2f797ae05d57045a54f5.js +31 -0
- data/spec/dummy/public/assets/select2_locale_fi-d3aca88f97706ace6062209f688e77f477f4ba66541a2f797ae05d57045a54f5.js.gz +0 -0
- data/spec/dummy/public/assets/select2_locale_fr-cca326cd42a17caf363015e0632ae360a2d9c924f15b05a0d7749c6575d4aa24.js +19 -0
- data/spec/dummy/public/assets/select2_locale_fr-cca326cd42a17caf363015e0632ae360a2d9c924f15b05a0d7749c6575d4aa24.js.gz +0 -0
- data/spec/dummy/public/assets/select2_locale_gl-4a273116f1ea3b1fafd8a04cc4b713277e8e4c0f0576196dc30e106dd8125e01.js +46 -0
- data/spec/dummy/public/assets/select2_locale_gl-4a273116f1ea3b1fafd8a04cc4b713277e8e4c0f0576196dc30e106dd8125e01.js.gz +0 -0
- data/spec/dummy/public/assets/select2_locale_he-7d98d7c309a3707124d24a22741efad6c676dfa669e3a573619ffe806a98c0a3.js +20 -0
- data/spec/dummy/public/assets/select2_locale_he-7d98d7c309a3707124d24a22741efad6c676dfa669e3a573619ffe806a98c0a3.js.gz +0 -0
- data/spec/dummy/public/assets/select2_locale_hr-fb37ea68ac5e8664d41bac4727949c4269753586ec93d26b4f8f43ca50d901fd.js +25 -0
- data/spec/dummy/public/assets/select2_locale_hr-fb37ea68ac5e8664d41bac4727949c4269753586ec93d26b4f8f43ca50d901fd.js.gz +0 -0
- data/spec/dummy/public/assets/select2_locale_hu-e8969fcadba7926e0a2e1e6a20f5df3ce4818b13196d07e6ce16879f602d0583.js +18 -0
- data/spec/dummy/public/assets/select2_locale_hu-e8969fcadba7926e0a2e1e6a20f5df3ce4818b13196d07e6ce16879f602d0583.js.gz +0 -0
- data/spec/dummy/public/assets/select2_locale_id-f968506088bfa7c18689a5bb0331647f36a97352c590b99fc2949f3823e9f2cd.js +20 -0
- data/spec/dummy/public/assets/select2_locale_id-f968506088bfa7c18689a5bb0331647f36a97352c590b99fc2949f3823e9f2cd.js.gz +0 -0
- data/spec/dummy/public/assets/select2_locale_is-012b25e8d0f0d399924a26f0c9aebc4615006276ddec1f3d84e713f97cacd0d2.js +18 -0
- data/spec/dummy/public/assets/select2_locale_is-012b25e8d0f0d399924a26f0c9aebc4615006276ddec1f3d84e713f97cacd0d2.js.gz +0 -0
- data/spec/dummy/public/assets/select2_locale_it-dcc45fb356269c7d56bee8485bfaa9b7d768b813d62d57dea6a1655a9df000ea.js +18 -0
- data/spec/dummy/public/assets/select2_locale_it-dcc45fb356269c7d56bee8485bfaa9b7d768b813d62d57dea6a1655a9df000ea.js.gz +0 -0
- data/spec/dummy/public/assets/select2_locale_ja-b2b311c42b079b65dc4bd77084a487f23d814fadcafeedeed3b134533ee47b6a.js +18 -0
- data/spec/dummy/public/assets/select2_locale_ja-b2b311c42b079b65dc4bd77084a487f23d814fadcafeedeed3b134533ee47b6a.js.gz +0 -0
- data/spec/dummy/public/assets/select2_locale_ka-6d93c37b19d576388bb67f4afa6dda1a352c9d99478ffac539c9b194fa5707ee.js +20 -0
- data/spec/dummy/public/assets/select2_locale_ka-6d93c37b19d576388bb67f4afa6dda1a352c9d99478ffac539c9b194fa5707ee.js.gz +0 -0
- data/spec/dummy/public/assets/select2_locale_ko-9dec66b6f325e13b849ec4e800e0693429625e6c859262f14e7a53e1e761c5ac.js +20 -0
- data/spec/dummy/public/assets/select2_locale_ko-9dec66b6f325e13b849ec4e800e0693429625e6c859262f14e7a53e1e761c5ac.js.gz +0 -0
- data/spec/dummy/public/assets/select2_locale_lt-b56ef195311a71cb8a3e2a55c20faf70f723a9232caa8116a19d3ea288586350.js +27 -0
- data/spec/dummy/public/assets/select2_locale_lt-b56ef195311a71cb8a3e2a55c20faf70f723a9232caa8116a19d3ea288586350.js.gz +0 -0
- data/spec/dummy/public/assets/select2_locale_lv-334e18838f800abaff51f83b34beaba3e0c1640bc957bbefd6722bfa518cc04c.js +20 -0
- data/spec/dummy/public/assets/select2_locale_lv-334e18838f800abaff51f83b34beaba3e0c1640bc957bbefd6722bfa518cc04c.js.gz +0 -0
- data/spec/dummy/public/assets/select2_locale_mk-ac7a50fd55dd9ff5b4163857f6eba040aeaf7420c696b95cf5bcb00e958a3d5b.js +20 -0
- data/spec/dummy/public/assets/select2_locale_mk-ac7a50fd55dd9ff5b4163857f6eba040aeaf7420c696b95cf5bcb00e958a3d5b.js.gz +0 -0
- data/spec/dummy/public/assets/select2_locale_ms-f9c316c48b79dd693ca74b9462e8080400dc5d47ab516ac31b1272791979c3ce.js +20 -0
- data/spec/dummy/public/assets/select2_locale_ms-f9c316c48b79dd693ca74b9462e8080400dc5d47ab516ac31b1272791979c3ce.js.gz +0 -0
- data/spec/dummy/public/assets/select2_locale_nl-b3bd6541e18715eabc9b402bc87ee926471f16806c644506dee5f2f3d967b286.js +18 -0
- data/spec/dummy/public/assets/select2_locale_nl-b3bd6541e18715eabc9b402bc87ee926471f16806c644506dee5f2f3d967b286.js.gz +0 -0
- data/spec/dummy/public/assets/select2_locale_no-450ea11297318434f9c5e427302333062ba0b4497f866f8010a85294604cf801.js +21 -0
- data/spec/dummy/public/assets/select2_locale_no-450ea11297318434f9c5e427302333062ba0b4497f866f8010a85294604cf801.js.gz +0 -0
- data/spec/dummy/public/assets/select2_locale_pl-54e8b177a932b0c6f70ccc81f3c650e3c488bb99bd56e1d8e6187415de649b86.js +26 -0
- data/spec/dummy/public/assets/select2_locale_pl-54e8b177a932b0c6f70ccc81f3c650e3c488bb99bd56e1d8e6187415de649b86.js.gz +0 -0
- data/spec/dummy/public/assets/select2_locale_pt-BR-bb12e4123097c6327ec6cbc82159dbe1574cb2fa6f1dcfc1a6af3c00755c31d5.js +18 -0
- data/spec/dummy/public/assets/select2_locale_pt-BR-bb12e4123097c6327ec6cbc82159dbe1574cb2fa6f1dcfc1a6af3c00755c31d5.js.gz +0 -0
- data/spec/dummy/public/assets/select2_locale_pt-PT-2dc9ef1f7bf4ce21d4be57f85c304d525b2b5f19ad62b714ba94d2b118c84498.js +18 -0
- data/spec/dummy/public/assets/select2_locale_pt-PT-2dc9ef1f7bf4ce21d4be57f85c304d525b2b5f19ad62b714ba94d2b118c84498.js.gz +0 -0
- data/spec/dummy/public/assets/select2_locale_ro-8c0bb8fa885ab577e50d6643d9ec68f87d9ba2a99b3e436c6cb21f67421d870a.js +18 -0
- data/spec/dummy/public/assets/select2_locale_ro-8c0bb8fa885ab577e50d6643d9ec68f87d9ba2a99b3e436c6cb21f67421d870a.js.gz +0 -0
- data/spec/dummy/public/assets/select2_locale_rs-1016c79a680bca3c3b8095ad04e67c9b89412ff6f6051dbc196627828e592c9b.js +20 -0
- data/spec/dummy/public/assets/select2_locale_rs-1016c79a680bca3c3b8095ad04e67c9b89412ff6f6051dbc196627828e592c9b.js.gz +0 -0
- data/spec/dummy/public/assets/select2_locale_ru-4c1cd4a76b568e7452b09b8a665a28f5808d5854aec120985101c17b7b960687.js +24 -0
- data/spec/dummy/public/assets/select2_locale_ru-4c1cd4a76b568e7452b09b8a665a28f5808d5854aec120985101c17b7b960687.js.gz +0 -0
- data/spec/dummy/public/assets/select2_locale_sk-c91946ae59a294854489563706f97cb3b690617ec2dbac799b184c6336189f1b.js +51 -0
- data/spec/dummy/public/assets/select2_locale_sk-c91946ae59a294854489563706f97cb3b690617ec2dbac799b184c6336189f1b.js.gz +0 -0
- data/spec/dummy/public/assets/select2_locale_sv-92964e4300e520e23f5f83492c2e750b5875484b6420ed54c5c7422e50bff49e.js +20 -0
- data/spec/dummy/public/assets/select2_locale_sv-92964e4300e520e23f5f83492c2e750b5875484b6420ed54c5c7422e50bff49e.js.gz +0 -0
- data/spec/dummy/public/assets/select2_locale_th-9d64c8b41fcc2d5d28d505f0d7b325b04edc51ca0ac74b3d9c5dd0275fa4dcbd.js +20 -0
- data/spec/dummy/public/assets/select2_locale_th-9d64c8b41fcc2d5d28d505f0d7b325b04edc51ca0ac74b3d9c5dd0275fa4dcbd.js.gz +0 -0
- data/spec/dummy/public/assets/select2_locale_tr-22bf3c62ec7c4d81cd046c1ce7b60f3921ab75099438d5e547d2beab674cd5f6.js +20 -0
- data/spec/dummy/public/assets/select2_locale_tr-22bf3c62ec7c4d81cd046c1ce7b60f3921ab75099438d5e547d2beab674cd5f6.js.gz +0 -0
- data/spec/dummy/public/assets/select2_locale_ug-CN-3a320caea8f59ef6c10c7fa462697a38029ab59a4450390c2ca9ec509b4a8263.js +17 -0
- data/spec/dummy/public/assets/select2_locale_ug-CN-3a320caea8f59ef6c10c7fa462697a38029ab59a4450390c2ca9ec509b4a8263.js.gz +0 -0
- data/spec/dummy/public/assets/select2_locale_uk-e912e0547b8a72e9caa72693c78a0e88db81dcd03f1cee8db45456c4eacbfab3.js +26 -0
- data/spec/dummy/public/assets/select2_locale_uk-e912e0547b8a72e9caa72693c78a0e88db81dcd03f1cee8db45456c4eacbfab3.js.gz +0 -0
- data/spec/dummy/public/assets/select2_locale_vi-29766aff66ab669df184f4e4402f1d67ea7a5c3369a553e7cf0c64bbc46f6db6.js +21 -0
- data/spec/dummy/public/assets/select2_locale_vi-29766aff66ab669df184f4e4402f1d67ea7a5c3369a553e7cf0c64bbc46f6db6.js.gz +0 -0
- data/spec/dummy/public/assets/select2_locale_zh-CN-86b8afaa82c0b8de71d37c2cfe3949a130055880c203c785022e32a6cb7f7aaa.js +17 -0
- data/spec/dummy/public/assets/select2_locale_zh-CN-86b8afaa82c0b8de71d37c2cfe3949a130055880c203c785022e32a6cb7f7aaa.js.gz +0 -0
- data/spec/dummy/public/assets/select2_locale_zh-TW-a408bf991b2672ab5d537ff08915acecd2c043311c31f6b4041b8e04b51ba2a4.js +17 -0
- data/spec/dummy/public/assets/select2_locale_zh-TW-a408bf991b2672ab5d537ff08915acecd2c043311c31f6b4041b8e04b51ba2a4.js.gz +0 -0
- data/spec/dummy/public/assets/select2x2-6fe28d687dc0ed4d96016238c608ba1e7198c9c9accfa0b360b78018b9fb9bc2.png +0 -0
- data/spec/dummy/public/assets/spree/backend/address_states-76840b8177a1aba71ee06233175b713fb4855f7b4fe28db303c47be7807ae36b.js +33 -0
- data/spec/dummy/public/assets/spree/backend/address_states-76840b8177a1aba71ee06233175b713fb4855f7b4fe28db303c47be7807ae36b.js.gz +0 -0
- data/spec/dummy/public/assets/spree/backend/all-7a9f9297e55c2d8089e033e69e2a1458be789bdf1ea980f6d285886026badd52.css +10939 -0
- data/spec/dummy/public/assets/spree/backend/all-7a9f9297e55c2d8089e033e69e2a1458be789bdf1ea980f6d285886026badd52.css.gz +0 -0
- data/spec/dummy/public/assets/spree/backend/all-da2e1beed5f92ec67ec299f8a83b4d6cf6858f47fe7f75de11c11732253a9542.js +33204 -0
- data/spec/dummy/public/assets/spree/backend/all-da2e1beed5f92ec67ec299f8a83b4d6cf6858f47fe7f75de11c11732253a9542.js.gz +0 -0
- data/spec/dummy/public/assets/spree/frontend/all-18b1bdb166c10b8b6e8a17fc67461e63abe20eac64986802a13d71e1894b0918.js +16398 -0
- data/spec/dummy/public/assets/spree/frontend/all-18b1bdb166c10b8b6e8a17fc67461e63abe20eac64986802a13d71e1894b0918.js.gz +0 -0
- data/spec/dummy/public/assets/spree/frontend/all-46820e63933a6180828e01f6fc77d4535d878536540a5d13f08f40d4aa0ac5c6.css +5868 -0
- data/spec/dummy/public/assets/spree/frontend/all-46820e63933a6180828e01f6fc77d4535d878536540a5d13f08f40d4aa0ac5c6.css.gz +0 -0
- data/spec/dummy/public/assets/spree/frontend/checkout/shipment-9295a502364634d0279a37cf8b01f068adc338048fb1319162372ab527b86d4e.js +49 -0
- data/spec/dummy/public/assets/spree/frontend/checkout/shipment-9295a502364634d0279a37cf8b01f068adc338048fb1319162372ab527b86d4e.js.gz +0 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/tmp/development_secret.txt +1 -0
- data/spec/dummy/vendor/assets/javascripts/spree/backend/all.js +15 -0
- data/spec/dummy/vendor/assets/javascripts/spree/frontend/all.js +16 -0
- data/spec/dummy/vendor/assets/stylesheets/spree/backend/all.css +14 -0
- data/spec/dummy/vendor/assets/stylesheets/spree/frontend/all.css +14 -0
- data/spec/features/administer_spec.rb +48 -0
- data/spec/features/callback_spec.rb +88 -0
- data/spec/features/checkout_spec.rb +74 -0
- data/spec/features/creditcard_spec.rb +63 -0
- data/spec/features/paypal_spec.rb +63 -0
- data/spec/models/spree/billing_integration_spec.rb +26 -0
- data/spec/models/spree/payment_method/sisow_billing/bancontact_spec.rb +34 -0
- data/spec/models/spree/payment_method/sisow_billing/ideal_spec.rb +42 -0
- data/spec/models/spree/payment_method/sisow_billing/paypalec_spec.rb +66 -0
- data/spec/models/spree/payment_method/sisow_billing/purchase_spec.rb +20 -0
- data/spec/models/spree/payment_method/sisow_billing/sisow_payment_method_spec.rb +19 -0
- data/spec/models/spree/payment_method/sisow_billing/sofort_spec.rb +34 -0
- data/spec/models/spree/payment_method/sisow_billing_spec.rb +268 -0
- data/spec/models/spree/sisow_transaction.rb +4 -0
- data/spec/sisow.yml +4 -0
- data/spec/spec_helper.rb +99 -0
- data/spec/support/spree/spree_stubs.rb +17 -0
- data/spec/support/webmock/web_mock_fixture_helpers.rb +6 -0
- data/spec/webmock_files/bancontact_redirect_url_output +10 -0
- data/spec/webmock_files/creditcard_redirect_url_output +10 -0
- data/spec/webmock_files/ideal_issuer_output +10 -0
- data/spec/webmock_files/ideal_redirect_url_output +10 -0
- data/spec/webmock_files/paypal_redirect_url_output +10 -0
- data/spec/webmock_files/sofort_redirect_url_output +10 -0
- metadata +1106 -4
@@ -0,0 +1,1141 @@
|
|
1
|
+
# This file is auto-generated from the current state of the database. Instead
|
2
|
+
# of editing this file, please use the migrations feature of Active Record to
|
3
|
+
# incrementally modify your database, and then regenerate this schema definition.
|
4
|
+
#
|
5
|
+
# Note that this schema.rb definition is the authoritative source for your
|
6
|
+
# database schema. If you need to create the application database on another
|
7
|
+
# system, you should be using db:schema:load, not running all the migrations
|
8
|
+
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
|
9
|
+
# you'll amass, the slower it'll run and the greater likelihood for issues).
|
10
|
+
#
|
11
|
+
# It's strongly recommended that you check this file into your version control system.
|
12
|
+
|
13
|
+
ActiveRecord::Schema.define(version: 2019_07_29_091931) do
|
14
|
+
|
15
|
+
create_table "active_storage_attachments", force: :cascade do |t|
|
16
|
+
t.string "name", null: false
|
17
|
+
t.string "record_type", null: false
|
18
|
+
t.integer "record_id", null: false
|
19
|
+
t.integer "blob_id", null: false
|
20
|
+
t.datetime "created_at", null: false
|
21
|
+
t.index ["blob_id"], name: "index_active_storage_attachments_on_blob_id"
|
22
|
+
t.index ["record_type", "record_id", "name", "blob_id"], name: "index_active_storage_attachments_uniqueness", unique: true
|
23
|
+
end
|
24
|
+
|
25
|
+
create_table "active_storage_blobs", force: :cascade do |t|
|
26
|
+
t.string "key", null: false
|
27
|
+
t.string "filename", null: false
|
28
|
+
t.string "content_type"
|
29
|
+
t.text "metadata"
|
30
|
+
t.bigint "byte_size", null: false
|
31
|
+
t.string "checksum", null: false
|
32
|
+
t.datetime "created_at", null: false
|
33
|
+
t.index ["key"], name: "index_active_storage_blobs_on_key", unique: true
|
34
|
+
end
|
35
|
+
|
36
|
+
create_table "friendly_id_slugs", force: :cascade do |t|
|
37
|
+
t.string "slug", null: false
|
38
|
+
t.integer "sluggable_id", null: false
|
39
|
+
t.string "sluggable_type", limit: 50
|
40
|
+
t.string "scope"
|
41
|
+
t.datetime "created_at"
|
42
|
+
t.datetime "deleted_at"
|
43
|
+
t.index ["deleted_at"], name: "index_friendly_id_slugs_on_deleted_at"
|
44
|
+
t.index ["slug", "sluggable_type", "scope"], name: "index_friendly_id_slugs_on_slug_and_sluggable_type_and_scope", unique: true
|
45
|
+
t.index ["slug", "sluggable_type"], name: "index_friendly_id_slugs_on_slug_and_sluggable_type"
|
46
|
+
t.index ["sluggable_id"], name: "index_friendly_id_slugs_on_sluggable_id"
|
47
|
+
t.index ["sluggable_type"], name: "index_friendly_id_slugs_on_sluggable_type"
|
48
|
+
end
|
49
|
+
|
50
|
+
create_table "spree_addresses", force: :cascade do |t|
|
51
|
+
t.string "firstname"
|
52
|
+
t.string "lastname"
|
53
|
+
t.string "address1"
|
54
|
+
t.string "address2"
|
55
|
+
t.string "city"
|
56
|
+
t.string "zipcode"
|
57
|
+
t.string "phone"
|
58
|
+
t.string "state_name"
|
59
|
+
t.string "alternative_phone"
|
60
|
+
t.string "company"
|
61
|
+
t.integer "state_id"
|
62
|
+
t.integer "country_id"
|
63
|
+
t.datetime "created_at", precision: 6, null: false
|
64
|
+
t.datetime "updated_at", precision: 6, null: false
|
65
|
+
t.index ["country_id"], name: "index_spree_addresses_on_country_id"
|
66
|
+
t.index ["firstname"], name: "index_addresses_on_firstname"
|
67
|
+
t.index ["lastname"], name: "index_addresses_on_lastname"
|
68
|
+
t.index ["state_id"], name: "index_spree_addresses_on_state_id"
|
69
|
+
end
|
70
|
+
|
71
|
+
create_table "spree_adjustments", force: :cascade do |t|
|
72
|
+
t.string "source_type"
|
73
|
+
t.integer "source_id"
|
74
|
+
t.string "adjustable_type"
|
75
|
+
t.integer "adjustable_id"
|
76
|
+
t.decimal "amount", precision: 10, scale: 2
|
77
|
+
t.string "label"
|
78
|
+
t.boolean "mandatory"
|
79
|
+
t.boolean "eligible", default: true
|
80
|
+
t.datetime "created_at", precision: 6, null: false
|
81
|
+
t.datetime "updated_at", precision: 6, null: false
|
82
|
+
t.string "state"
|
83
|
+
t.integer "order_id", null: false
|
84
|
+
t.boolean "included", default: false
|
85
|
+
t.index ["adjustable_id", "adjustable_type"], name: "index_spree_adjustments_on_adjustable_id_and_adjustable_type"
|
86
|
+
t.index ["eligible"], name: "index_spree_adjustments_on_eligible"
|
87
|
+
t.index ["order_id"], name: "index_spree_adjustments_on_order_id"
|
88
|
+
t.index ["source_id", "source_type"], name: "index_spree_adjustments_on_source_id_and_source_type"
|
89
|
+
end
|
90
|
+
|
91
|
+
create_table "spree_assets", force: :cascade do |t|
|
92
|
+
t.string "viewable_type"
|
93
|
+
t.integer "viewable_id"
|
94
|
+
t.integer "attachment_width"
|
95
|
+
t.integer "attachment_height"
|
96
|
+
t.integer "attachment_file_size"
|
97
|
+
t.integer "position"
|
98
|
+
t.string "attachment_content_type"
|
99
|
+
t.string "attachment_file_name"
|
100
|
+
t.string "type", limit: 75
|
101
|
+
t.datetime "attachment_updated_at"
|
102
|
+
t.text "alt"
|
103
|
+
t.datetime "created_at"
|
104
|
+
t.datetime "updated_at"
|
105
|
+
t.index ["position"], name: "index_spree_assets_on_position"
|
106
|
+
t.index ["viewable_id"], name: "index_assets_on_viewable_id"
|
107
|
+
t.index ["viewable_type", "type"], name: "index_assets_on_viewable_type_and_type"
|
108
|
+
end
|
109
|
+
|
110
|
+
create_table "spree_calculators", force: :cascade do |t|
|
111
|
+
t.string "type"
|
112
|
+
t.string "calculable_type"
|
113
|
+
t.integer "calculable_id"
|
114
|
+
t.datetime "created_at", precision: 6, null: false
|
115
|
+
t.datetime "updated_at", precision: 6, null: false
|
116
|
+
t.text "preferences"
|
117
|
+
t.datetime "deleted_at"
|
118
|
+
t.index ["calculable_id", "calculable_type"], name: "index_spree_calculators_on_calculable_id_and_calculable_type"
|
119
|
+
t.index ["deleted_at"], name: "index_spree_calculators_on_deleted_at"
|
120
|
+
t.index ["id", "type"], name: "index_spree_calculators_on_id_and_type"
|
121
|
+
end
|
122
|
+
|
123
|
+
create_table "spree_countries", force: :cascade do |t|
|
124
|
+
t.string "iso_name"
|
125
|
+
t.string "iso"
|
126
|
+
t.string "iso3"
|
127
|
+
t.string "name"
|
128
|
+
t.integer "numcode"
|
129
|
+
t.boolean "states_required", default: false
|
130
|
+
t.datetime "updated_at"
|
131
|
+
t.boolean "zipcode_required", default: true
|
132
|
+
t.index ["iso_name"], name: "index_spree_countries_on_iso_name", unique: true
|
133
|
+
t.index ["name"], name: "index_spree_countries_on_name", unique: true
|
134
|
+
end
|
135
|
+
|
136
|
+
create_table "spree_credit_cards", force: :cascade do |t|
|
137
|
+
t.string "month"
|
138
|
+
t.string "year"
|
139
|
+
t.string "cc_type"
|
140
|
+
t.string "last_digits"
|
141
|
+
t.integer "address_id"
|
142
|
+
t.string "gateway_customer_profile_id"
|
143
|
+
t.string "gateway_payment_profile_id"
|
144
|
+
t.datetime "created_at", precision: 6, null: false
|
145
|
+
t.datetime "updated_at", precision: 6, null: false
|
146
|
+
t.string "name"
|
147
|
+
t.integer "user_id"
|
148
|
+
t.integer "payment_method_id"
|
149
|
+
t.boolean "default", default: false, null: false
|
150
|
+
t.datetime "deleted_at"
|
151
|
+
t.index ["address_id"], name: "index_spree_credit_cards_on_address_id"
|
152
|
+
t.index ["deleted_at"], name: "index_spree_credit_cards_on_deleted_at"
|
153
|
+
t.index ["payment_method_id"], name: "index_spree_credit_cards_on_payment_method_id"
|
154
|
+
t.index ["user_id"], name: "index_spree_credit_cards_on_user_id"
|
155
|
+
end
|
156
|
+
|
157
|
+
create_table "spree_customer_returns", force: :cascade do |t|
|
158
|
+
t.string "number"
|
159
|
+
t.integer "stock_location_id"
|
160
|
+
t.datetime "created_at", precision: 6, null: false
|
161
|
+
t.datetime "updated_at", precision: 6, null: false
|
162
|
+
t.index ["number"], name: "index_spree_customer_returns_on_number", unique: true
|
163
|
+
t.index ["stock_location_id"], name: "index_spree_customer_returns_on_stock_location_id"
|
164
|
+
end
|
165
|
+
|
166
|
+
create_table "spree_dummy_models", force: :cascade do |t|
|
167
|
+
t.string "name"
|
168
|
+
t.integer "position"
|
169
|
+
t.datetime "created_at", null: false
|
170
|
+
t.datetime "updated_at", null: false
|
171
|
+
end
|
172
|
+
|
173
|
+
create_table "spree_gateways", force: :cascade do |t|
|
174
|
+
t.string "type"
|
175
|
+
t.string "name"
|
176
|
+
t.text "description"
|
177
|
+
t.boolean "active", default: true
|
178
|
+
t.string "environment", default: "development"
|
179
|
+
t.string "server", default: "test"
|
180
|
+
t.boolean "test_mode", default: true
|
181
|
+
t.datetime "created_at", precision: 6, null: false
|
182
|
+
t.datetime "updated_at", precision: 6, null: false
|
183
|
+
t.text "preferences"
|
184
|
+
t.index ["active"], name: "index_spree_gateways_on_active"
|
185
|
+
t.index ["test_mode"], name: "index_spree_gateways_on_test_mode"
|
186
|
+
end
|
187
|
+
|
188
|
+
create_table "spree_inventory_units", force: :cascade do |t|
|
189
|
+
t.string "state"
|
190
|
+
t.integer "variant_id"
|
191
|
+
t.integer "order_id"
|
192
|
+
t.integer "shipment_id"
|
193
|
+
t.datetime "created_at", precision: 6, null: false
|
194
|
+
t.datetime "updated_at", precision: 6, null: false
|
195
|
+
t.boolean "pending", default: true
|
196
|
+
t.integer "line_item_id"
|
197
|
+
t.integer "quantity", default: 1
|
198
|
+
t.integer "original_return_item_id"
|
199
|
+
t.index ["line_item_id"], name: "index_spree_inventory_units_on_line_item_id"
|
200
|
+
t.index ["order_id"], name: "index_inventory_units_on_order_id"
|
201
|
+
t.index ["original_return_item_id"], name: "index_spree_inventory_units_on_original_return_item_id"
|
202
|
+
t.index ["shipment_id"], name: "index_inventory_units_on_shipment_id"
|
203
|
+
t.index ["variant_id"], name: "index_inventory_units_on_variant_id"
|
204
|
+
end
|
205
|
+
|
206
|
+
create_table "spree_line_items", force: :cascade do |t|
|
207
|
+
t.integer "variant_id"
|
208
|
+
t.integer "order_id"
|
209
|
+
t.integer "quantity", null: false
|
210
|
+
t.decimal "price", precision: 10, scale: 2, null: false
|
211
|
+
t.datetime "created_at", precision: 6, null: false
|
212
|
+
t.datetime "updated_at", precision: 6, null: false
|
213
|
+
t.string "currency"
|
214
|
+
t.decimal "cost_price", precision: 10, scale: 2
|
215
|
+
t.integer "tax_category_id"
|
216
|
+
t.decimal "adjustment_total", precision: 10, scale: 2, default: "0.0"
|
217
|
+
t.decimal "additional_tax_total", precision: 10, scale: 2, default: "0.0"
|
218
|
+
t.decimal "promo_total", precision: 10, scale: 2, default: "0.0"
|
219
|
+
t.decimal "included_tax_total", precision: 10, scale: 2, default: "0.0", null: false
|
220
|
+
t.decimal "pre_tax_amount", precision: 12, scale: 4, default: "0.0", null: false
|
221
|
+
t.decimal "taxable_adjustment_total", precision: 10, scale: 2, default: "0.0", null: false
|
222
|
+
t.decimal "non_taxable_adjustment_total", precision: 10, scale: 2, default: "0.0", null: false
|
223
|
+
t.index ["order_id"], name: "index_spree_line_items_on_order_id"
|
224
|
+
t.index ["tax_category_id"], name: "index_spree_line_items_on_tax_category_id"
|
225
|
+
t.index ["variant_id"], name: "index_spree_line_items_on_variant_id"
|
226
|
+
end
|
227
|
+
|
228
|
+
create_table "spree_log_entries", force: :cascade do |t|
|
229
|
+
t.string "source_type"
|
230
|
+
t.integer "source_id"
|
231
|
+
t.text "details"
|
232
|
+
t.datetime "created_at", precision: 6, null: false
|
233
|
+
t.datetime "updated_at", precision: 6, null: false
|
234
|
+
t.index ["source_id", "source_type"], name: "index_spree_log_entries_on_source_id_and_source_type"
|
235
|
+
end
|
236
|
+
|
237
|
+
create_table "spree_oauth_access_grants", force: :cascade do |t|
|
238
|
+
t.integer "resource_owner_id", null: false
|
239
|
+
t.integer "application_id", null: false
|
240
|
+
t.string "token", null: false
|
241
|
+
t.integer "expires_in", null: false
|
242
|
+
t.text "redirect_uri", null: false
|
243
|
+
t.datetime "created_at", null: false
|
244
|
+
t.datetime "revoked_at"
|
245
|
+
t.string "scopes"
|
246
|
+
t.index ["application_id"], name: "index_spree_oauth_access_grants_on_application_id"
|
247
|
+
t.index ["token"], name: "index_spree_oauth_access_grants_on_token", unique: true
|
248
|
+
end
|
249
|
+
|
250
|
+
create_table "spree_oauth_access_tokens", force: :cascade do |t|
|
251
|
+
t.integer "resource_owner_id"
|
252
|
+
t.integer "application_id"
|
253
|
+
t.string "token", null: false
|
254
|
+
t.string "refresh_token"
|
255
|
+
t.integer "expires_in"
|
256
|
+
t.datetime "revoked_at"
|
257
|
+
t.datetime "created_at", null: false
|
258
|
+
t.string "scopes"
|
259
|
+
t.string "previous_refresh_token", default: "", null: false
|
260
|
+
t.index ["application_id"], name: "index_spree_oauth_access_tokens_on_application_id"
|
261
|
+
t.index ["refresh_token"], name: "index_spree_oauth_access_tokens_on_refresh_token", unique: true
|
262
|
+
t.index ["resource_owner_id"], name: "index_spree_oauth_access_tokens_on_resource_owner_id"
|
263
|
+
t.index ["token"], name: "index_spree_oauth_access_tokens_on_token", unique: true
|
264
|
+
end
|
265
|
+
|
266
|
+
create_table "spree_oauth_applications", force: :cascade do |t|
|
267
|
+
t.string "name", null: false
|
268
|
+
t.string "uid", null: false
|
269
|
+
t.string "secret", null: false
|
270
|
+
t.text "redirect_uri", null: false
|
271
|
+
t.string "scopes", default: "", null: false
|
272
|
+
t.boolean "confidential", default: true, null: false
|
273
|
+
t.datetime "created_at", null: false
|
274
|
+
t.datetime "updated_at", null: false
|
275
|
+
t.index ["uid"], name: "index_spree_oauth_applications_on_uid", unique: true
|
276
|
+
end
|
277
|
+
|
278
|
+
create_table "spree_option_type_prototypes", force: :cascade do |t|
|
279
|
+
t.integer "prototype_id"
|
280
|
+
t.integer "option_type_id"
|
281
|
+
t.index ["option_type_id"], name: "index_spree_option_type_prototypes_on_option_type_id"
|
282
|
+
t.index ["prototype_id", "option_type_id"], name: "spree_option_type_prototypes_prototype_id_option_type_id", unique: true
|
283
|
+
t.index ["prototype_id"], name: "index_spree_option_type_prototypes_on_prototype_id"
|
284
|
+
end
|
285
|
+
|
286
|
+
create_table "spree_option_types", force: :cascade do |t|
|
287
|
+
t.string "name", limit: 100
|
288
|
+
t.string "presentation", limit: 100
|
289
|
+
t.integer "position", default: 0, null: false
|
290
|
+
t.datetime "created_at", precision: 6, null: false
|
291
|
+
t.datetime "updated_at", precision: 6, null: false
|
292
|
+
t.index ["name"], name: "index_spree_option_types_on_name"
|
293
|
+
t.index ["position"], name: "index_spree_option_types_on_position"
|
294
|
+
end
|
295
|
+
|
296
|
+
create_table "spree_option_value_variants", force: :cascade do |t|
|
297
|
+
t.integer "variant_id"
|
298
|
+
t.integer "option_value_id"
|
299
|
+
t.index ["option_value_id"], name: "index_spree_option_value_variants_on_option_value_id"
|
300
|
+
t.index ["variant_id", "option_value_id"], name: "index_option_values_variants_on_variant_id_and_option_value_id", unique: true
|
301
|
+
t.index ["variant_id"], name: "index_spree_option_value_variants_on_variant_id"
|
302
|
+
end
|
303
|
+
|
304
|
+
create_table "spree_option_values", force: :cascade do |t|
|
305
|
+
t.integer "position"
|
306
|
+
t.string "name"
|
307
|
+
t.string "presentation"
|
308
|
+
t.integer "option_type_id"
|
309
|
+
t.datetime "created_at", precision: 6, null: false
|
310
|
+
t.datetime "updated_at", precision: 6, null: false
|
311
|
+
t.index ["name"], name: "index_spree_option_values_on_name"
|
312
|
+
t.index ["option_type_id"], name: "index_spree_option_values_on_option_type_id"
|
313
|
+
t.index ["position"], name: "index_spree_option_values_on_position"
|
314
|
+
end
|
315
|
+
|
316
|
+
create_table "spree_order_promotions", force: :cascade do |t|
|
317
|
+
t.integer "order_id"
|
318
|
+
t.integer "promotion_id"
|
319
|
+
t.index ["order_id"], name: "index_spree_order_promotions_on_order_id"
|
320
|
+
t.index ["promotion_id", "order_id"], name: "index_spree_order_promotions_on_promotion_id_and_order_id"
|
321
|
+
t.index ["promotion_id"], name: "index_spree_order_promotions_on_promotion_id"
|
322
|
+
end
|
323
|
+
|
324
|
+
create_table "spree_orders", force: :cascade do |t|
|
325
|
+
t.string "number", limit: 32
|
326
|
+
t.decimal "item_total", precision: 10, scale: 2, default: "0.0", null: false
|
327
|
+
t.decimal "total", precision: 10, scale: 2, default: "0.0", null: false
|
328
|
+
t.string "state"
|
329
|
+
t.decimal "adjustment_total", precision: 10, scale: 2, default: "0.0", null: false
|
330
|
+
t.integer "user_id"
|
331
|
+
t.datetime "completed_at"
|
332
|
+
t.integer "bill_address_id"
|
333
|
+
t.integer "ship_address_id"
|
334
|
+
t.decimal "payment_total", precision: 10, scale: 2, default: "0.0"
|
335
|
+
t.string "shipment_state"
|
336
|
+
t.string "payment_state"
|
337
|
+
t.string "email"
|
338
|
+
t.text "special_instructions"
|
339
|
+
t.datetime "created_at", precision: 6, null: false
|
340
|
+
t.datetime "updated_at", precision: 6, null: false
|
341
|
+
t.string "currency"
|
342
|
+
t.string "last_ip_address"
|
343
|
+
t.integer "created_by_id"
|
344
|
+
t.decimal "shipment_total", precision: 10, scale: 2, default: "0.0", null: false
|
345
|
+
t.decimal "additional_tax_total", precision: 10, scale: 2, default: "0.0"
|
346
|
+
t.decimal "promo_total", precision: 10, scale: 2, default: "0.0"
|
347
|
+
t.string "channel", default: "spree"
|
348
|
+
t.decimal "included_tax_total", precision: 10, scale: 2, default: "0.0", null: false
|
349
|
+
t.integer "item_count", default: 0
|
350
|
+
t.integer "approver_id"
|
351
|
+
t.datetime "approved_at"
|
352
|
+
t.boolean "confirmation_delivered", default: false
|
353
|
+
t.boolean "considered_risky", default: false
|
354
|
+
t.string "token"
|
355
|
+
t.datetime "canceled_at"
|
356
|
+
t.integer "canceler_id"
|
357
|
+
t.integer "store_id"
|
358
|
+
t.integer "state_lock_version", default: 0, null: false
|
359
|
+
t.decimal "taxable_adjustment_total", precision: 10, scale: 2, default: "0.0", null: false
|
360
|
+
t.decimal "non_taxable_adjustment_total", precision: 10, scale: 2, default: "0.0", null: false
|
361
|
+
t.index ["approver_id"], name: "index_spree_orders_on_approver_id"
|
362
|
+
t.index ["bill_address_id"], name: "index_spree_orders_on_bill_address_id"
|
363
|
+
t.index ["canceler_id"], name: "index_spree_orders_on_canceler_id"
|
364
|
+
t.index ["completed_at"], name: "index_spree_orders_on_completed_at"
|
365
|
+
t.index ["confirmation_delivered"], name: "index_spree_orders_on_confirmation_delivered"
|
366
|
+
t.index ["considered_risky"], name: "index_spree_orders_on_considered_risky"
|
367
|
+
t.index ["created_by_id"], name: "index_spree_orders_on_created_by_id"
|
368
|
+
t.index ["number"], name: "index_spree_orders_on_number", unique: true
|
369
|
+
t.index ["ship_address_id"], name: "index_spree_orders_on_ship_address_id"
|
370
|
+
t.index ["store_id"], name: "index_spree_orders_on_store_id"
|
371
|
+
t.index ["token"], name: "index_spree_orders_on_token"
|
372
|
+
t.index ["user_id", "created_by_id"], name: "index_spree_orders_on_user_id_and_created_by_id"
|
373
|
+
end
|
374
|
+
|
375
|
+
create_table "spree_payment_capture_events", force: :cascade do |t|
|
376
|
+
t.decimal "amount", precision: 10, scale: 2, default: "0.0"
|
377
|
+
t.integer "payment_id"
|
378
|
+
t.datetime "created_at", precision: 6, null: false
|
379
|
+
t.datetime "updated_at", precision: 6, null: false
|
380
|
+
t.index ["payment_id"], name: "index_spree_payment_capture_events_on_payment_id"
|
381
|
+
end
|
382
|
+
|
383
|
+
create_table "spree_payment_methods", force: :cascade do |t|
|
384
|
+
t.string "type"
|
385
|
+
t.string "name"
|
386
|
+
t.text "description"
|
387
|
+
t.boolean "active", default: true
|
388
|
+
t.datetime "deleted_at"
|
389
|
+
t.datetime "created_at", precision: 6, null: false
|
390
|
+
t.datetime "updated_at", precision: 6, null: false
|
391
|
+
t.string "display_on", default: "both"
|
392
|
+
t.boolean "auto_capture"
|
393
|
+
t.text "preferences"
|
394
|
+
t.integer "position", default: 0
|
395
|
+
t.index ["id", "type"], name: "index_spree_payment_methods_on_id_and_type"
|
396
|
+
end
|
397
|
+
|
398
|
+
create_table "spree_payments", force: :cascade do |t|
|
399
|
+
t.decimal "amount", precision: 10, scale: 2, default: "0.0", null: false
|
400
|
+
t.integer "order_id"
|
401
|
+
t.string "source_type"
|
402
|
+
t.integer "source_id"
|
403
|
+
t.integer "payment_method_id"
|
404
|
+
t.string "state"
|
405
|
+
t.string "response_code"
|
406
|
+
t.string "avs_response"
|
407
|
+
t.datetime "created_at", precision: 6, null: false
|
408
|
+
t.datetime "updated_at", precision: 6, null: false
|
409
|
+
t.string "number"
|
410
|
+
t.string "cvv_response_code"
|
411
|
+
t.string "cvv_response_message"
|
412
|
+
t.index ["number"], name: "index_spree_payments_on_number", unique: true
|
413
|
+
t.index ["order_id"], name: "index_spree_payments_on_order_id"
|
414
|
+
t.index ["payment_method_id"], name: "index_spree_payments_on_payment_method_id"
|
415
|
+
t.index ["source_id", "source_type"], name: "index_spree_payments_on_source_id_and_source_type"
|
416
|
+
end
|
417
|
+
|
418
|
+
create_table "spree_preferences", force: :cascade do |t|
|
419
|
+
t.text "value"
|
420
|
+
t.string "key"
|
421
|
+
t.datetime "created_at", precision: 6, null: false
|
422
|
+
t.datetime "updated_at", precision: 6, null: false
|
423
|
+
t.index ["key"], name: "index_spree_preferences_on_key", unique: true
|
424
|
+
end
|
425
|
+
|
426
|
+
create_table "spree_prices", force: :cascade do |t|
|
427
|
+
t.integer "variant_id", null: false
|
428
|
+
t.decimal "amount", precision: 10, scale: 2
|
429
|
+
t.string "currency"
|
430
|
+
t.datetime "deleted_at"
|
431
|
+
t.datetime "created_at", null: false
|
432
|
+
t.datetime "updated_at", null: false
|
433
|
+
t.index ["deleted_at"], name: "index_spree_prices_on_deleted_at"
|
434
|
+
t.index ["variant_id", "currency"], name: "index_spree_prices_on_variant_id_and_currency"
|
435
|
+
t.index ["variant_id"], name: "index_spree_prices_on_variant_id"
|
436
|
+
end
|
437
|
+
|
438
|
+
create_table "spree_product_option_types", force: :cascade do |t|
|
439
|
+
t.integer "position"
|
440
|
+
t.integer "product_id"
|
441
|
+
t.integer "option_type_id"
|
442
|
+
t.datetime "created_at", precision: 6, null: false
|
443
|
+
t.datetime "updated_at", precision: 6, null: false
|
444
|
+
t.index ["option_type_id"], name: "index_spree_product_option_types_on_option_type_id"
|
445
|
+
t.index ["position"], name: "index_spree_product_option_types_on_position"
|
446
|
+
t.index ["product_id"], name: "index_spree_product_option_types_on_product_id"
|
447
|
+
end
|
448
|
+
|
449
|
+
create_table "spree_product_promotion_rules", force: :cascade do |t|
|
450
|
+
t.integer "product_id"
|
451
|
+
t.integer "promotion_rule_id"
|
452
|
+
t.index ["product_id"], name: "index_products_promotion_rules_on_product_id"
|
453
|
+
t.index ["promotion_rule_id", "product_id"], name: "index_products_promotion_rules_on_promotion_rule_and_product"
|
454
|
+
end
|
455
|
+
|
456
|
+
create_table "spree_product_properties", force: :cascade do |t|
|
457
|
+
t.string "value"
|
458
|
+
t.integer "product_id"
|
459
|
+
t.integer "property_id"
|
460
|
+
t.datetime "created_at", precision: 6, null: false
|
461
|
+
t.datetime "updated_at", precision: 6, null: false
|
462
|
+
t.integer "position", default: 0
|
463
|
+
t.index ["position"], name: "index_spree_product_properties_on_position"
|
464
|
+
t.index ["product_id"], name: "index_product_properties_on_product_id"
|
465
|
+
t.index ["property_id"], name: "index_spree_product_properties_on_property_id"
|
466
|
+
end
|
467
|
+
|
468
|
+
create_table "spree_products", force: :cascade do |t|
|
469
|
+
t.string "name", default: "", null: false
|
470
|
+
t.text "description"
|
471
|
+
t.datetime "available_on"
|
472
|
+
t.datetime "deleted_at"
|
473
|
+
t.string "slug"
|
474
|
+
t.text "meta_description"
|
475
|
+
t.string "meta_keywords"
|
476
|
+
t.integer "tax_category_id"
|
477
|
+
t.integer "shipping_category_id"
|
478
|
+
t.datetime "created_at", precision: 6, null: false
|
479
|
+
t.datetime "updated_at", precision: 6, null: false
|
480
|
+
t.boolean "promotionable", default: true
|
481
|
+
t.string "meta_title"
|
482
|
+
t.datetime "discontinue_on"
|
483
|
+
t.index ["available_on"], name: "index_spree_products_on_available_on"
|
484
|
+
t.index ["deleted_at"], name: "index_spree_products_on_deleted_at"
|
485
|
+
t.index ["discontinue_on"], name: "index_spree_products_on_discontinue_on"
|
486
|
+
t.index ["name"], name: "index_spree_products_on_name"
|
487
|
+
t.index ["shipping_category_id"], name: "index_spree_products_on_shipping_category_id"
|
488
|
+
t.index ["slug"], name: "index_spree_products_on_slug", unique: true
|
489
|
+
t.index ["tax_category_id"], name: "index_spree_products_on_tax_category_id"
|
490
|
+
end
|
491
|
+
|
492
|
+
create_table "spree_products_taxons", force: :cascade do |t|
|
493
|
+
t.integer "product_id"
|
494
|
+
t.integer "taxon_id"
|
495
|
+
t.integer "position"
|
496
|
+
t.index ["position"], name: "index_spree_products_taxons_on_position"
|
497
|
+
t.index ["product_id"], name: "index_spree_products_taxons_on_product_id"
|
498
|
+
t.index ["taxon_id"], name: "index_spree_products_taxons_on_taxon_id"
|
499
|
+
end
|
500
|
+
|
501
|
+
create_table "spree_promotion_action_line_items", force: :cascade do |t|
|
502
|
+
t.integer "promotion_action_id"
|
503
|
+
t.integer "variant_id"
|
504
|
+
t.integer "quantity", default: 1
|
505
|
+
t.index ["promotion_action_id"], name: "index_spree_promotion_action_line_items_on_promotion_action_id"
|
506
|
+
t.index ["variant_id"], name: "index_spree_promotion_action_line_items_on_variant_id"
|
507
|
+
end
|
508
|
+
|
509
|
+
create_table "spree_promotion_actions", force: :cascade do |t|
|
510
|
+
t.integer "promotion_id"
|
511
|
+
t.integer "position"
|
512
|
+
t.string "type"
|
513
|
+
t.datetime "deleted_at"
|
514
|
+
t.index ["deleted_at"], name: "index_spree_promotion_actions_on_deleted_at"
|
515
|
+
t.index ["id", "type"], name: "index_spree_promotion_actions_on_id_and_type"
|
516
|
+
t.index ["promotion_id"], name: "index_spree_promotion_actions_on_promotion_id"
|
517
|
+
end
|
518
|
+
|
519
|
+
create_table "spree_promotion_categories", force: :cascade do |t|
|
520
|
+
t.string "name"
|
521
|
+
t.datetime "created_at", precision: 6, null: false
|
522
|
+
t.datetime "updated_at", precision: 6, null: false
|
523
|
+
t.string "code"
|
524
|
+
end
|
525
|
+
|
526
|
+
create_table "spree_promotion_rule_taxons", force: :cascade do |t|
|
527
|
+
t.integer "taxon_id"
|
528
|
+
t.integer "promotion_rule_id"
|
529
|
+
t.index ["promotion_rule_id"], name: "index_spree_promotion_rule_taxons_on_promotion_rule_id"
|
530
|
+
t.index ["taxon_id"], name: "index_spree_promotion_rule_taxons_on_taxon_id"
|
531
|
+
end
|
532
|
+
|
533
|
+
create_table "spree_promotion_rule_users", force: :cascade do |t|
|
534
|
+
t.integer "user_id"
|
535
|
+
t.integer "promotion_rule_id"
|
536
|
+
t.index ["promotion_rule_id"], name: "index_promotion_rules_users_on_promotion_rule_id"
|
537
|
+
t.index ["user_id", "promotion_rule_id"], name: "index_promotion_rules_users_on_user_id_and_promotion_rule_id"
|
538
|
+
end
|
539
|
+
|
540
|
+
create_table "spree_promotion_rules", force: :cascade do |t|
|
541
|
+
t.integer "promotion_id"
|
542
|
+
t.integer "user_id"
|
543
|
+
t.integer "product_group_id"
|
544
|
+
t.string "type"
|
545
|
+
t.datetime "created_at", precision: 6, null: false
|
546
|
+
t.datetime "updated_at", precision: 6, null: false
|
547
|
+
t.string "code"
|
548
|
+
t.text "preferences"
|
549
|
+
t.index ["product_group_id"], name: "index_promotion_rules_on_product_group_id"
|
550
|
+
t.index ["promotion_id"], name: "index_spree_promotion_rules_on_promotion_id"
|
551
|
+
t.index ["user_id"], name: "index_promotion_rules_on_user_id"
|
552
|
+
end
|
553
|
+
|
554
|
+
create_table "spree_promotions", force: :cascade do |t|
|
555
|
+
t.string "description"
|
556
|
+
t.datetime "expires_at"
|
557
|
+
t.datetime "starts_at"
|
558
|
+
t.string "name"
|
559
|
+
t.string "type"
|
560
|
+
t.integer "usage_limit"
|
561
|
+
t.string "match_policy", default: "all"
|
562
|
+
t.string "code"
|
563
|
+
t.boolean "advertise", default: false
|
564
|
+
t.string "path"
|
565
|
+
t.datetime "created_at", precision: 6, null: false
|
566
|
+
t.datetime "updated_at", precision: 6, null: false
|
567
|
+
t.integer "promotion_category_id"
|
568
|
+
t.index ["advertise"], name: "index_spree_promotions_on_advertise"
|
569
|
+
t.index ["code"], name: "index_spree_promotions_on_code", unique: true
|
570
|
+
t.index ["expires_at"], name: "index_spree_promotions_on_expires_at"
|
571
|
+
t.index ["id", "type"], name: "index_spree_promotions_on_id_and_type"
|
572
|
+
t.index ["promotion_category_id"], name: "index_spree_promotions_on_promotion_category_id"
|
573
|
+
t.index ["starts_at"], name: "index_spree_promotions_on_starts_at"
|
574
|
+
end
|
575
|
+
|
576
|
+
create_table "spree_properties", force: :cascade do |t|
|
577
|
+
t.string "name"
|
578
|
+
t.string "presentation", null: false
|
579
|
+
t.datetime "created_at", precision: 6, null: false
|
580
|
+
t.datetime "updated_at", precision: 6, null: false
|
581
|
+
t.index ["name"], name: "index_spree_properties_on_name"
|
582
|
+
end
|
583
|
+
|
584
|
+
create_table "spree_property_prototypes", force: :cascade do |t|
|
585
|
+
t.integer "prototype_id"
|
586
|
+
t.integer "property_id"
|
587
|
+
t.index ["property_id"], name: "index_spree_property_prototypes_on_property_id"
|
588
|
+
t.index ["prototype_id", "property_id"], name: "index_property_prototypes_on_prototype_id_and_property_id", unique: true
|
589
|
+
t.index ["prototype_id"], name: "index_spree_property_prototypes_on_prototype_id"
|
590
|
+
end
|
591
|
+
|
592
|
+
create_table "spree_prototype_taxons", force: :cascade do |t|
|
593
|
+
t.integer "taxon_id"
|
594
|
+
t.integer "prototype_id"
|
595
|
+
t.index ["prototype_id", "taxon_id"], name: "index_spree_prototype_taxons_on_prototype_id_and_taxon_id"
|
596
|
+
t.index ["prototype_id"], name: "index_spree_prototype_taxons_on_prototype_id"
|
597
|
+
t.index ["taxon_id"], name: "index_spree_prototype_taxons_on_taxon_id"
|
598
|
+
end
|
599
|
+
|
600
|
+
create_table "spree_prototypes", force: :cascade do |t|
|
601
|
+
t.string "name"
|
602
|
+
t.datetime "created_at", precision: 6, null: false
|
603
|
+
t.datetime "updated_at", precision: 6, null: false
|
604
|
+
end
|
605
|
+
|
606
|
+
create_table "spree_refund_reasons", force: :cascade do |t|
|
607
|
+
t.string "name"
|
608
|
+
t.boolean "active", default: true
|
609
|
+
t.boolean "mutable", default: true
|
610
|
+
t.datetime "created_at", precision: 6, null: false
|
611
|
+
t.datetime "updated_at", precision: 6, null: false
|
612
|
+
t.index ["name"], name: "index_spree_refund_reasons_on_name", unique: true
|
613
|
+
end
|
614
|
+
|
615
|
+
create_table "spree_refunds", force: :cascade do |t|
|
616
|
+
t.integer "payment_id"
|
617
|
+
t.decimal "amount", precision: 10, scale: 2, default: "0.0", null: false
|
618
|
+
t.string "transaction_id"
|
619
|
+
t.datetime "created_at", precision: 6, null: false
|
620
|
+
t.datetime "updated_at", precision: 6, null: false
|
621
|
+
t.integer "refund_reason_id"
|
622
|
+
t.integer "reimbursement_id"
|
623
|
+
t.index ["payment_id"], name: "index_spree_refunds_on_payment_id"
|
624
|
+
t.index ["refund_reason_id"], name: "index_refunds_on_refund_reason_id"
|
625
|
+
t.index ["reimbursement_id"], name: "index_spree_refunds_on_reimbursement_id"
|
626
|
+
end
|
627
|
+
|
628
|
+
create_table "spree_reimbursement_credits", force: :cascade do |t|
|
629
|
+
t.decimal "amount", precision: 10, scale: 2, default: "0.0", null: false
|
630
|
+
t.integer "reimbursement_id"
|
631
|
+
t.integer "creditable_id"
|
632
|
+
t.string "creditable_type"
|
633
|
+
t.index ["creditable_id", "creditable_type"], name: "index_reimbursement_credits_on_creditable_id_and_type"
|
634
|
+
t.index ["reimbursement_id"], name: "index_spree_reimbursement_credits_on_reimbursement_id"
|
635
|
+
end
|
636
|
+
|
637
|
+
create_table "spree_reimbursement_types", force: :cascade do |t|
|
638
|
+
t.string "name"
|
639
|
+
t.boolean "active", default: true
|
640
|
+
t.boolean "mutable", default: true
|
641
|
+
t.datetime "created_at", precision: 6, null: false
|
642
|
+
t.datetime "updated_at", precision: 6, null: false
|
643
|
+
t.string "type"
|
644
|
+
t.index ["name"], name: "index_spree_reimbursement_types_on_name", unique: true
|
645
|
+
t.index ["type"], name: "index_spree_reimbursement_types_on_type"
|
646
|
+
end
|
647
|
+
|
648
|
+
create_table "spree_reimbursements", force: :cascade do |t|
|
649
|
+
t.string "number"
|
650
|
+
t.string "reimbursement_status"
|
651
|
+
t.integer "customer_return_id"
|
652
|
+
t.integer "order_id"
|
653
|
+
t.decimal "total", precision: 10, scale: 2
|
654
|
+
t.datetime "created_at", precision: 6, null: false
|
655
|
+
t.datetime "updated_at", precision: 6, null: false
|
656
|
+
t.index ["customer_return_id"], name: "index_spree_reimbursements_on_customer_return_id"
|
657
|
+
t.index ["number"], name: "index_spree_reimbursements_on_number", unique: true
|
658
|
+
t.index ["order_id"], name: "index_spree_reimbursements_on_order_id"
|
659
|
+
end
|
660
|
+
|
661
|
+
create_table "spree_return_authorization_reasons", force: :cascade do |t|
|
662
|
+
t.string "name"
|
663
|
+
t.boolean "active", default: true
|
664
|
+
t.boolean "mutable", default: true
|
665
|
+
t.datetime "created_at", precision: 6, null: false
|
666
|
+
t.datetime "updated_at", precision: 6, null: false
|
667
|
+
t.index ["name"], name: "index_spree_return_authorization_reasons_on_name", unique: true
|
668
|
+
end
|
669
|
+
|
670
|
+
create_table "spree_return_authorizations", force: :cascade do |t|
|
671
|
+
t.string "number"
|
672
|
+
t.string "state"
|
673
|
+
t.integer "order_id"
|
674
|
+
t.text "memo"
|
675
|
+
t.datetime "created_at"
|
676
|
+
t.datetime "updated_at"
|
677
|
+
t.integer "stock_location_id"
|
678
|
+
t.integer "return_authorization_reason_id"
|
679
|
+
t.index ["number"], name: "index_spree_return_authorizations_on_number", unique: true
|
680
|
+
t.index ["order_id"], name: "index_spree_return_authorizations_on_order_id"
|
681
|
+
t.index ["return_authorization_reason_id"], name: "index_return_authorizations_on_return_authorization_reason_id"
|
682
|
+
t.index ["stock_location_id"], name: "index_spree_return_authorizations_on_stock_location_id"
|
683
|
+
end
|
684
|
+
|
685
|
+
create_table "spree_return_items", force: :cascade do |t|
|
686
|
+
t.integer "return_authorization_id"
|
687
|
+
t.integer "inventory_unit_id"
|
688
|
+
t.integer "exchange_variant_id"
|
689
|
+
t.datetime "created_at", precision: 6, null: false
|
690
|
+
t.datetime "updated_at", precision: 6, null: false
|
691
|
+
t.decimal "pre_tax_amount", precision: 12, scale: 4, default: "0.0", null: false
|
692
|
+
t.decimal "included_tax_total", precision: 12, scale: 4, default: "0.0", null: false
|
693
|
+
t.decimal "additional_tax_total", precision: 12, scale: 4, default: "0.0", null: false
|
694
|
+
t.string "reception_status"
|
695
|
+
t.string "acceptance_status"
|
696
|
+
t.integer "customer_return_id"
|
697
|
+
t.integer "reimbursement_id"
|
698
|
+
t.text "acceptance_status_errors"
|
699
|
+
t.integer "preferred_reimbursement_type_id"
|
700
|
+
t.integer "override_reimbursement_type_id"
|
701
|
+
t.boolean "resellable", default: true, null: false
|
702
|
+
t.index ["customer_return_id"], name: "index_return_items_on_customer_return_id"
|
703
|
+
t.index ["exchange_variant_id"], name: "index_spree_return_items_on_exchange_variant_id"
|
704
|
+
t.index ["inventory_unit_id"], name: "index_spree_return_items_on_inventory_unit_id"
|
705
|
+
t.index ["override_reimbursement_type_id"], name: "index_spree_return_items_on_override_reimbursement_type_id"
|
706
|
+
t.index ["preferred_reimbursement_type_id"], name: "index_spree_return_items_on_preferred_reimbursement_type_id"
|
707
|
+
t.index ["reimbursement_id"], name: "index_spree_return_items_on_reimbursement_id"
|
708
|
+
t.index ["return_authorization_id"], name: "index_spree_return_items_on_return_authorization_id"
|
709
|
+
end
|
710
|
+
|
711
|
+
create_table "spree_role_users", force: :cascade do |t|
|
712
|
+
t.integer "role_id"
|
713
|
+
t.integer "user_id"
|
714
|
+
t.index ["role_id"], name: "index_spree_role_users_on_role_id"
|
715
|
+
t.index ["user_id"], name: "index_spree_role_users_on_user_id"
|
716
|
+
end
|
717
|
+
|
718
|
+
create_table "spree_roles", force: :cascade do |t|
|
719
|
+
t.string "name"
|
720
|
+
t.index ["name"], name: "index_spree_roles_on_name", unique: true
|
721
|
+
end
|
722
|
+
|
723
|
+
create_table "spree_shipments", force: :cascade do |t|
|
724
|
+
t.string "tracking"
|
725
|
+
t.string "number"
|
726
|
+
t.decimal "cost", precision: 10, scale: 2, default: "0.0"
|
727
|
+
t.datetime "shipped_at"
|
728
|
+
t.integer "order_id"
|
729
|
+
t.integer "address_id"
|
730
|
+
t.string "state"
|
731
|
+
t.datetime "created_at", precision: 6, null: false
|
732
|
+
t.datetime "updated_at", precision: 6, null: false
|
733
|
+
t.integer "stock_location_id"
|
734
|
+
t.decimal "adjustment_total", precision: 10, scale: 2, default: "0.0"
|
735
|
+
t.decimal "additional_tax_total", precision: 10, scale: 2, default: "0.0"
|
736
|
+
t.decimal "promo_total", precision: 10, scale: 2, default: "0.0"
|
737
|
+
t.decimal "included_tax_total", precision: 10, scale: 2, default: "0.0", null: false
|
738
|
+
t.decimal "pre_tax_amount", precision: 12, scale: 4, default: "0.0", null: false
|
739
|
+
t.decimal "taxable_adjustment_total", precision: 10, scale: 2, default: "0.0", null: false
|
740
|
+
t.decimal "non_taxable_adjustment_total", precision: 10, scale: 2, default: "0.0", null: false
|
741
|
+
t.index ["address_id"], name: "index_spree_shipments_on_address_id"
|
742
|
+
t.index ["number"], name: "index_spree_shipments_on_number", unique: true
|
743
|
+
t.index ["order_id"], name: "index_spree_shipments_on_order_id"
|
744
|
+
t.index ["stock_location_id"], name: "index_spree_shipments_on_stock_location_id"
|
745
|
+
end
|
746
|
+
|
747
|
+
create_table "spree_shipping_categories", force: :cascade do |t|
|
748
|
+
t.string "name"
|
749
|
+
t.datetime "created_at", precision: 6, null: false
|
750
|
+
t.datetime "updated_at", precision: 6, null: false
|
751
|
+
t.index ["name"], name: "index_spree_shipping_categories_on_name"
|
752
|
+
end
|
753
|
+
|
754
|
+
create_table "spree_shipping_method_categories", force: :cascade do |t|
|
755
|
+
t.integer "shipping_method_id", null: false
|
756
|
+
t.integer "shipping_category_id", null: false
|
757
|
+
t.datetime "created_at", precision: 6, null: false
|
758
|
+
t.datetime "updated_at", precision: 6, null: false
|
759
|
+
t.index ["shipping_category_id", "shipping_method_id"], name: "unique_spree_shipping_method_categories", unique: true
|
760
|
+
t.index ["shipping_category_id"], name: "index_spree_shipping_method_categories_on_shipping_category_id"
|
761
|
+
t.index ["shipping_method_id"], name: "index_spree_shipping_method_categories_on_shipping_method_id"
|
762
|
+
end
|
763
|
+
|
764
|
+
create_table "spree_shipping_method_zones", force: :cascade do |t|
|
765
|
+
t.integer "shipping_method_id"
|
766
|
+
t.integer "zone_id"
|
767
|
+
t.index ["shipping_method_id"], name: "index_spree_shipping_method_zones_on_shipping_method_id"
|
768
|
+
t.index ["zone_id"], name: "index_spree_shipping_method_zones_on_zone_id"
|
769
|
+
end
|
770
|
+
|
771
|
+
create_table "spree_shipping_methods", force: :cascade do |t|
|
772
|
+
t.string "name"
|
773
|
+
t.string "display_on"
|
774
|
+
t.datetime "deleted_at"
|
775
|
+
t.datetime "created_at", precision: 6, null: false
|
776
|
+
t.datetime "updated_at", precision: 6, null: false
|
777
|
+
t.string "tracking_url"
|
778
|
+
t.string "admin_name"
|
779
|
+
t.integer "tax_category_id"
|
780
|
+
t.string "code"
|
781
|
+
t.index ["deleted_at"], name: "index_spree_shipping_methods_on_deleted_at"
|
782
|
+
t.index ["tax_category_id"], name: "index_spree_shipping_methods_on_tax_category_id"
|
783
|
+
end
|
784
|
+
|
785
|
+
create_table "spree_shipping_rates", force: :cascade do |t|
|
786
|
+
t.integer "shipment_id"
|
787
|
+
t.integer "shipping_method_id"
|
788
|
+
t.boolean "selected", default: false
|
789
|
+
t.decimal "cost", precision: 8, scale: 2, default: "0.0"
|
790
|
+
t.datetime "created_at", precision: 6, null: false
|
791
|
+
t.datetime "updated_at", precision: 6, null: false
|
792
|
+
t.integer "tax_rate_id"
|
793
|
+
t.index ["selected"], name: "index_spree_shipping_rates_on_selected"
|
794
|
+
t.index ["shipment_id", "shipping_method_id"], name: "spree_shipping_rates_join_index", unique: true
|
795
|
+
t.index ["shipment_id"], name: "index_spree_shipping_rates_on_shipment_id"
|
796
|
+
t.index ["shipping_method_id"], name: "index_spree_shipping_rates_on_shipping_method_id"
|
797
|
+
t.index ["tax_rate_id"], name: "index_spree_shipping_rates_on_tax_rate_id"
|
798
|
+
end
|
799
|
+
|
800
|
+
create_table "spree_sisow_transactions", force: :cascade do |t|
|
801
|
+
t.string "transaction_id"
|
802
|
+
t.string "entrance_code"
|
803
|
+
t.string "status"
|
804
|
+
t.string "sha1"
|
805
|
+
t.datetime "created_at", null: false
|
806
|
+
t.datetime "updated_at", null: false
|
807
|
+
t.string "transaction_type"
|
808
|
+
end
|
809
|
+
|
810
|
+
create_table "spree_state_changes", force: :cascade do |t|
|
811
|
+
t.string "name"
|
812
|
+
t.string "previous_state"
|
813
|
+
t.integer "stateful_id"
|
814
|
+
t.integer "user_id"
|
815
|
+
t.string "stateful_type"
|
816
|
+
t.string "next_state"
|
817
|
+
t.datetime "created_at", precision: 6, null: false
|
818
|
+
t.datetime "updated_at", precision: 6, null: false
|
819
|
+
t.index ["stateful_id", "stateful_type"], name: "index_spree_state_changes_on_stateful_id_and_stateful_type"
|
820
|
+
end
|
821
|
+
|
822
|
+
create_table "spree_states", force: :cascade do |t|
|
823
|
+
t.string "name"
|
824
|
+
t.string "abbr"
|
825
|
+
t.integer "country_id"
|
826
|
+
t.datetime "updated_at"
|
827
|
+
t.index ["country_id"], name: "index_spree_states_on_country_id"
|
828
|
+
end
|
829
|
+
|
830
|
+
create_table "spree_stock_items", force: :cascade do |t|
|
831
|
+
t.integer "stock_location_id"
|
832
|
+
t.integer "variant_id"
|
833
|
+
t.integer "count_on_hand", default: 0, null: false
|
834
|
+
t.datetime "created_at", precision: 6, null: false
|
835
|
+
t.datetime "updated_at", precision: 6, null: false
|
836
|
+
t.boolean "backorderable", default: false
|
837
|
+
t.datetime "deleted_at"
|
838
|
+
t.index ["backorderable"], name: "index_spree_stock_items_on_backorderable"
|
839
|
+
t.index ["deleted_at"], name: "index_spree_stock_items_on_deleted_at"
|
840
|
+
t.index ["stock_location_id", "variant_id"], name: "stock_item_by_loc_and_var_id"
|
841
|
+
t.index ["stock_location_id"], name: "index_spree_stock_items_on_stock_location_id"
|
842
|
+
t.index ["variant_id"], name: "index_spree_stock_items_on_variant_id"
|
843
|
+
end
|
844
|
+
|
845
|
+
create_table "spree_stock_locations", force: :cascade do |t|
|
846
|
+
t.string "name"
|
847
|
+
t.datetime "created_at", precision: 6, null: false
|
848
|
+
t.datetime "updated_at", precision: 6, null: false
|
849
|
+
t.boolean "default", default: false, null: false
|
850
|
+
t.string "address1"
|
851
|
+
t.string "address2"
|
852
|
+
t.string "city"
|
853
|
+
t.integer "state_id"
|
854
|
+
t.string "state_name"
|
855
|
+
t.integer "country_id"
|
856
|
+
t.string "zipcode"
|
857
|
+
t.string "phone"
|
858
|
+
t.boolean "active", default: true
|
859
|
+
t.boolean "backorderable_default", default: false
|
860
|
+
t.boolean "propagate_all_variants", default: true
|
861
|
+
t.string "admin_name"
|
862
|
+
t.index ["active"], name: "index_spree_stock_locations_on_active"
|
863
|
+
t.index ["backorderable_default"], name: "index_spree_stock_locations_on_backorderable_default"
|
864
|
+
t.index ["country_id"], name: "index_spree_stock_locations_on_country_id"
|
865
|
+
t.index ["propagate_all_variants"], name: "index_spree_stock_locations_on_propagate_all_variants"
|
866
|
+
t.index ["state_id"], name: "index_spree_stock_locations_on_state_id"
|
867
|
+
end
|
868
|
+
|
869
|
+
create_table "spree_stock_movements", force: :cascade do |t|
|
870
|
+
t.integer "stock_item_id"
|
871
|
+
t.integer "quantity", default: 0
|
872
|
+
t.string "action"
|
873
|
+
t.datetime "created_at", precision: 6, null: false
|
874
|
+
t.datetime "updated_at", precision: 6, null: false
|
875
|
+
t.string "originator_type"
|
876
|
+
t.integer "originator_id"
|
877
|
+
t.index ["originator_id", "originator_type"], name: "index_stock_movements_on_originator_id_and_originator_type"
|
878
|
+
t.index ["stock_item_id"], name: "index_spree_stock_movements_on_stock_item_id"
|
879
|
+
end
|
880
|
+
|
881
|
+
create_table "spree_stock_transfers", force: :cascade do |t|
|
882
|
+
t.string "type"
|
883
|
+
t.string "reference"
|
884
|
+
t.integer "source_location_id"
|
885
|
+
t.integer "destination_location_id"
|
886
|
+
t.datetime "created_at", precision: 6, null: false
|
887
|
+
t.datetime "updated_at", precision: 6, null: false
|
888
|
+
t.string "number"
|
889
|
+
t.index ["destination_location_id"], name: "index_spree_stock_transfers_on_destination_location_id"
|
890
|
+
t.index ["number"], name: "index_spree_stock_transfers_on_number", unique: true
|
891
|
+
t.index ["source_location_id"], name: "index_spree_stock_transfers_on_source_location_id"
|
892
|
+
end
|
893
|
+
|
894
|
+
create_table "spree_store_credit_categories", force: :cascade do |t|
|
895
|
+
t.string "name"
|
896
|
+
t.datetime "created_at", precision: 6, null: false
|
897
|
+
t.datetime "updated_at", precision: 6, null: false
|
898
|
+
end
|
899
|
+
|
900
|
+
create_table "spree_store_credit_events", force: :cascade do |t|
|
901
|
+
t.integer "store_credit_id", null: false
|
902
|
+
t.string "action", null: false
|
903
|
+
t.decimal "amount", precision: 8, scale: 2
|
904
|
+
t.string "authorization_code", null: false
|
905
|
+
t.decimal "user_total_amount", precision: 8, scale: 2, default: "0.0", null: false
|
906
|
+
t.integer "originator_id"
|
907
|
+
t.string "originator_type"
|
908
|
+
t.datetime "deleted_at"
|
909
|
+
t.datetime "created_at", precision: 6, null: false
|
910
|
+
t.datetime "updated_at", precision: 6, null: false
|
911
|
+
t.index ["originator_id", "originator_type"], name: "spree_store_credit_events_originator"
|
912
|
+
t.index ["store_credit_id"], name: "index_spree_store_credit_events_on_store_credit_id"
|
913
|
+
end
|
914
|
+
|
915
|
+
create_table "spree_store_credit_types", force: :cascade do |t|
|
916
|
+
t.string "name"
|
917
|
+
t.integer "priority"
|
918
|
+
t.datetime "created_at", precision: 6, null: false
|
919
|
+
t.datetime "updated_at", precision: 6, null: false
|
920
|
+
t.index ["priority"], name: "index_spree_store_credit_types_on_priority"
|
921
|
+
end
|
922
|
+
|
923
|
+
create_table "spree_store_credits", force: :cascade do |t|
|
924
|
+
t.integer "user_id"
|
925
|
+
t.integer "category_id"
|
926
|
+
t.integer "created_by_id"
|
927
|
+
t.decimal "amount", precision: 8, scale: 2, default: "0.0", null: false
|
928
|
+
t.decimal "amount_used", precision: 8, scale: 2, default: "0.0", null: false
|
929
|
+
t.text "memo"
|
930
|
+
t.datetime "deleted_at"
|
931
|
+
t.string "currency"
|
932
|
+
t.decimal "amount_authorized", precision: 8, scale: 2, default: "0.0", null: false
|
933
|
+
t.integer "originator_id"
|
934
|
+
t.string "originator_type"
|
935
|
+
t.integer "type_id"
|
936
|
+
t.datetime "created_at", precision: 6, null: false
|
937
|
+
t.datetime "updated_at", precision: 6, null: false
|
938
|
+
t.index ["deleted_at"], name: "index_spree_store_credits_on_deleted_at"
|
939
|
+
t.index ["originator_id", "originator_type"], name: "spree_store_credits_originator"
|
940
|
+
t.index ["type_id"], name: "index_spree_store_credits_on_type_id"
|
941
|
+
t.index ["user_id"], name: "index_spree_store_credits_on_user_id"
|
942
|
+
end
|
943
|
+
|
944
|
+
create_table "spree_stores", force: :cascade do |t|
|
945
|
+
t.string "name"
|
946
|
+
t.string "url"
|
947
|
+
t.text "meta_description"
|
948
|
+
t.text "meta_keywords"
|
949
|
+
t.string "seo_title"
|
950
|
+
t.string "mail_from_address"
|
951
|
+
t.string "default_currency"
|
952
|
+
t.string "code"
|
953
|
+
t.boolean "default", default: false, null: false
|
954
|
+
t.datetime "created_at", precision: 6, null: false
|
955
|
+
t.datetime "updated_at", precision: 6, null: false
|
956
|
+
t.index ["code"], name: "index_spree_stores_on_code", unique: true
|
957
|
+
t.index ["default"], name: "index_spree_stores_on_default"
|
958
|
+
t.index ["url"], name: "index_spree_stores_on_url"
|
959
|
+
end
|
960
|
+
|
961
|
+
create_table "spree_taggings", force: :cascade do |t|
|
962
|
+
t.integer "tag_id"
|
963
|
+
t.string "taggable_type"
|
964
|
+
t.integer "taggable_id"
|
965
|
+
t.string "tagger_type"
|
966
|
+
t.integer "tagger_id"
|
967
|
+
t.string "context", limit: 128
|
968
|
+
t.datetime "created_at"
|
969
|
+
t.index ["context"], name: "index_spree_taggings_on_context"
|
970
|
+
t.index ["tag_id", "taggable_id", "taggable_type", "context", "tagger_id", "tagger_type"], name: "spree_taggings_idx", unique: true
|
971
|
+
t.index ["tag_id"], name: "index_spree_taggings_on_tag_id"
|
972
|
+
t.index ["taggable_id", "taggable_type", "tagger_id", "context"], name: "spree_taggings_idy"
|
973
|
+
t.index ["taggable_id"], name: "index_spree_taggings_on_taggable_id"
|
974
|
+
t.index ["taggable_type"], name: "index_spree_taggings_on_taggable_type"
|
975
|
+
t.index ["tagger_id", "tagger_type"], name: "index_spree_taggings_on_tagger_id_and_tagger_type"
|
976
|
+
t.index ["tagger_id"], name: "index_spree_taggings_on_tagger_id"
|
977
|
+
end
|
978
|
+
|
979
|
+
create_table "spree_tags", force: :cascade do |t|
|
980
|
+
t.string "name"
|
981
|
+
t.integer "taggings_count", default: 0
|
982
|
+
t.index ["name"], name: "index_spree_tags_on_name", unique: true
|
983
|
+
end
|
984
|
+
|
985
|
+
create_table "spree_tax_categories", force: :cascade do |t|
|
986
|
+
t.string "name"
|
987
|
+
t.string "description"
|
988
|
+
t.boolean "is_default", default: false
|
989
|
+
t.datetime "deleted_at"
|
990
|
+
t.datetime "created_at", precision: 6, null: false
|
991
|
+
t.datetime "updated_at", precision: 6, null: false
|
992
|
+
t.string "tax_code"
|
993
|
+
t.index ["deleted_at"], name: "index_spree_tax_categories_on_deleted_at"
|
994
|
+
t.index ["is_default"], name: "index_spree_tax_categories_on_is_default"
|
995
|
+
end
|
996
|
+
|
997
|
+
create_table "spree_tax_rates", force: :cascade do |t|
|
998
|
+
t.decimal "amount", precision: 8, scale: 5
|
999
|
+
t.integer "zone_id"
|
1000
|
+
t.integer "tax_category_id"
|
1001
|
+
t.boolean "included_in_price", default: false
|
1002
|
+
t.datetime "created_at", precision: 6, null: false
|
1003
|
+
t.datetime "updated_at", precision: 6, null: false
|
1004
|
+
t.string "name"
|
1005
|
+
t.boolean "show_rate_in_label", default: true
|
1006
|
+
t.datetime "deleted_at"
|
1007
|
+
t.index ["deleted_at"], name: "index_spree_tax_rates_on_deleted_at"
|
1008
|
+
t.index ["included_in_price"], name: "index_spree_tax_rates_on_included_in_price"
|
1009
|
+
t.index ["show_rate_in_label"], name: "index_spree_tax_rates_on_show_rate_in_label"
|
1010
|
+
t.index ["tax_category_id"], name: "index_spree_tax_rates_on_tax_category_id"
|
1011
|
+
t.index ["zone_id"], name: "index_spree_tax_rates_on_zone_id"
|
1012
|
+
end
|
1013
|
+
|
1014
|
+
create_table "spree_taxonomies", force: :cascade do |t|
|
1015
|
+
t.string "name", null: false
|
1016
|
+
t.datetime "created_at", precision: 6, null: false
|
1017
|
+
t.datetime "updated_at", precision: 6, null: false
|
1018
|
+
t.integer "position", default: 0
|
1019
|
+
t.index ["position"], name: "index_spree_taxonomies_on_position"
|
1020
|
+
end
|
1021
|
+
|
1022
|
+
create_table "spree_taxons", force: :cascade do |t|
|
1023
|
+
t.integer "parent_id"
|
1024
|
+
t.integer "position", default: 0
|
1025
|
+
t.string "name", null: false
|
1026
|
+
t.string "permalink"
|
1027
|
+
t.integer "taxonomy_id"
|
1028
|
+
t.integer "lft"
|
1029
|
+
t.integer "rgt"
|
1030
|
+
t.text "description"
|
1031
|
+
t.datetime "created_at", precision: 6, null: false
|
1032
|
+
t.datetime "updated_at", precision: 6, null: false
|
1033
|
+
t.string "meta_title"
|
1034
|
+
t.string "meta_description"
|
1035
|
+
t.string "meta_keywords"
|
1036
|
+
t.integer "depth"
|
1037
|
+
t.index ["lft"], name: "index_spree_taxons_on_lft"
|
1038
|
+
t.index ["name"], name: "index_spree_taxons_on_name"
|
1039
|
+
t.index ["parent_id"], name: "index_taxons_on_parent_id"
|
1040
|
+
t.index ["permalink"], name: "index_taxons_on_permalink"
|
1041
|
+
t.index ["position"], name: "index_spree_taxons_on_position"
|
1042
|
+
t.index ["rgt"], name: "index_spree_taxons_on_rgt"
|
1043
|
+
t.index ["taxonomy_id"], name: "index_taxons_on_taxonomy_id"
|
1044
|
+
end
|
1045
|
+
|
1046
|
+
create_table "spree_trackers", force: :cascade do |t|
|
1047
|
+
t.string "analytics_id"
|
1048
|
+
t.boolean "active", default: true
|
1049
|
+
t.datetime "created_at", precision: 6, null: false
|
1050
|
+
t.datetime "updated_at", precision: 6, null: false
|
1051
|
+
t.integer "engine", default: 0, null: false
|
1052
|
+
t.index ["active"], name: "index_spree_trackers_on_active"
|
1053
|
+
end
|
1054
|
+
|
1055
|
+
create_table "spree_users", force: :cascade do |t|
|
1056
|
+
t.string "encrypted_password", limit: 128
|
1057
|
+
t.string "password_salt", limit: 128
|
1058
|
+
t.string "email"
|
1059
|
+
t.string "remember_token"
|
1060
|
+
t.string "persistence_token"
|
1061
|
+
t.string "reset_password_token"
|
1062
|
+
t.string "perishable_token"
|
1063
|
+
t.integer "sign_in_count", default: 0, null: false
|
1064
|
+
t.integer "failed_attempts", default: 0, null: false
|
1065
|
+
t.datetime "last_request_at"
|
1066
|
+
t.datetime "current_sign_in_at"
|
1067
|
+
t.datetime "last_sign_in_at"
|
1068
|
+
t.string "current_sign_in_ip"
|
1069
|
+
t.string "last_sign_in_ip"
|
1070
|
+
t.string "login"
|
1071
|
+
t.integer "ship_address_id"
|
1072
|
+
t.integer "bill_address_id"
|
1073
|
+
t.string "authentication_token"
|
1074
|
+
t.string "unlock_token"
|
1075
|
+
t.datetime "locked_at"
|
1076
|
+
t.datetime "reset_password_sent_at"
|
1077
|
+
t.datetime "created_at", precision: 6, null: false
|
1078
|
+
t.datetime "updated_at", precision: 6, null: false
|
1079
|
+
t.datetime "remember_created_at"
|
1080
|
+
t.datetime "deleted_at"
|
1081
|
+
t.string "confirmation_token"
|
1082
|
+
t.datetime "confirmed_at"
|
1083
|
+
t.datetime "confirmation_sent_at"
|
1084
|
+
t.string "spree_api_key", limit: 48
|
1085
|
+
t.index ["bill_address_id"], name: "index_spree_users_on_bill_address_id"
|
1086
|
+
t.index ["deleted_at"], name: "index_spree_users_on_deleted_at"
|
1087
|
+
t.index ["email"], name: "email_idx_unique", unique: true
|
1088
|
+
t.index ["ship_address_id"], name: "index_spree_users_on_ship_address_id"
|
1089
|
+
t.index ["spree_api_key"], name: "index_spree_users_on_spree_api_key"
|
1090
|
+
end
|
1091
|
+
|
1092
|
+
create_table "spree_variants", force: :cascade do |t|
|
1093
|
+
t.string "sku", default: "", null: false
|
1094
|
+
t.decimal "weight", precision: 8, scale: 2, default: "0.0"
|
1095
|
+
t.decimal "height", precision: 8, scale: 2
|
1096
|
+
t.decimal "width", precision: 8, scale: 2
|
1097
|
+
t.decimal "depth", precision: 8, scale: 2
|
1098
|
+
t.datetime "deleted_at"
|
1099
|
+
t.boolean "is_master", default: false
|
1100
|
+
t.integer "product_id"
|
1101
|
+
t.decimal "cost_price", precision: 10, scale: 2
|
1102
|
+
t.integer "position"
|
1103
|
+
t.string "cost_currency"
|
1104
|
+
t.boolean "track_inventory", default: true
|
1105
|
+
t.integer "tax_category_id"
|
1106
|
+
t.datetime "updated_at", null: false
|
1107
|
+
t.datetime "discontinue_on"
|
1108
|
+
t.datetime "created_at", null: false
|
1109
|
+
t.index ["deleted_at"], name: "index_spree_variants_on_deleted_at"
|
1110
|
+
t.index ["discontinue_on"], name: "index_spree_variants_on_discontinue_on"
|
1111
|
+
t.index ["is_master"], name: "index_spree_variants_on_is_master"
|
1112
|
+
t.index ["position"], name: "index_spree_variants_on_position"
|
1113
|
+
t.index ["product_id"], name: "index_spree_variants_on_product_id"
|
1114
|
+
t.index ["sku"], name: "index_spree_variants_on_sku"
|
1115
|
+
t.index ["tax_category_id"], name: "index_spree_variants_on_tax_category_id"
|
1116
|
+
t.index ["track_inventory"], name: "index_spree_variants_on_track_inventory"
|
1117
|
+
end
|
1118
|
+
|
1119
|
+
create_table "spree_zone_members", force: :cascade do |t|
|
1120
|
+
t.string "zoneable_type"
|
1121
|
+
t.integer "zoneable_id"
|
1122
|
+
t.integer "zone_id"
|
1123
|
+
t.datetime "created_at", precision: 6, null: false
|
1124
|
+
t.datetime "updated_at", precision: 6, null: false
|
1125
|
+
t.index ["zone_id"], name: "index_spree_zone_members_on_zone_id"
|
1126
|
+
t.index ["zoneable_id", "zoneable_type"], name: "index_spree_zone_members_on_zoneable_id_and_zoneable_type"
|
1127
|
+
end
|
1128
|
+
|
1129
|
+
create_table "spree_zones", force: :cascade do |t|
|
1130
|
+
t.string "name"
|
1131
|
+
t.string "description"
|
1132
|
+
t.boolean "default_tax", default: false
|
1133
|
+
t.integer "zone_members_count", default: 0
|
1134
|
+
t.datetime "created_at", precision: 6, null: false
|
1135
|
+
t.datetime "updated_at", precision: 6, null: false
|
1136
|
+
t.string "kind"
|
1137
|
+
t.index ["default_tax"], name: "index_spree_zones_on_default_tax"
|
1138
|
+
t.index ["kind"], name: "index_spree_zones_on_kind"
|
1139
|
+
end
|
1140
|
+
|
1141
|
+
end
|