Sha256: 3e0160ba3f8cdcc361eb365ad5801f6b0a26a243a2e6b9c46fe1a58dc5da97ef
Contents?: true
Size: 769 Bytes
Versions: 76
Compression:
Stored size: 769 Bytes
Contents
class CreateSpreeStoreCreditEvents < ActiveRecord::Migration[4.2] def change create_table :spree_store_credit_events do |t| t.integer :store_credit_id, null: false t.string :action, null: false t.decimal :amount, precision: 8, scale: 2 t.string :authorization_code, null: false t.decimal :user_total_amount, precision: 8, scale: 2, default: 0.0, null: false t.integer :originator_id t.string :originator_type t.datetime :deleted_at t.timestamps null: false, precision: 6 end add_index :spree_store_credit_events, :store_credit_id add_index :spree_store_credit_events, [:originator_id, :originator_type], name: :spree_store_credit_events_originator end end
Version data entries
76 entries across 76 versions & 1 rubygems