Sha256: 905fe5c5a96a350c89f5cc72638b813e474f07402f3d8d269213d83d60bac107
Contents?: true
Size: 939 Bytes
Versions: 25
Compression:
Stored size: 939 Bytes
Contents
# frozen_string_literal: true # This migration comes from spree (originally 20161017102621) class CreateSpreePromotionCodeBatch < ActiveRecord::Migration[5.0] def change create_table :spree_promotion_code_batches do |t| t.references :promotion, null: false, index: true t.string :base_code, null: false t.integer :number_of_codes, null: false t.string :email t.string :error t.string :state, default: "pending" t.timestamps precision: 6 end add_foreign_key( :spree_promotion_code_batches, :spree_promotions, column: :promotion_id ) add_column( :spree_promotion_codes, :promotion_code_batch_id, :integer ) add_foreign_key( :spree_promotion_codes, :spree_promotion_code_batches, column: :promotion_code_batch_id ) add_index( :spree_promotion_codes, :promotion_code_batch_id ) end end
Version data entries
25 entries across 25 versions & 9 rubygems