Sha256: ddeeda667ba6482744bb5605b60f39e85e30354c8779b76e72c210dfc96fe140
Contents?: true
Size: 1005 Bytes
Versions: 8
Compression:
Stored size: 1005 Bytes
Contents
# frozen_string_literal: true class CreatePrototypes < ActiveRecord::Migration[5.0] def change unless data_source_exists?("spree_prototypes") create_table :spree_prototypes do |t| t.string :name t.timestamps null: true end end unless data_source_exists?("spree_property_prototypes") create_table :spree_property_prototypes, id: false do |t| t.references :prototype t.references :property t.timestamps null: true end end unless data_source_exists?("spree_prototype_taxons") create_table :spree_prototype_taxons do |t| t.integer :taxon_id, index: true t.integer :prototype_id, index: true t.timestamps null: true end end unless data_source_exists?("spree_option_type_prototypes") create_table :spree_option_type_prototypes, id: false do |t| t.references :prototype t.references :option_type t.timestamps null: true end end end end
Version data entries
8 entries across 8 versions & 1 rubygems