Sha256: 09efc08c22ac9f209bbe1403d9ae6597d10bb2efbbd87a5c35228ec5aebdf841
Contents?: true
Size: 750 Bytes
Versions: 19
Compression:
Stored size: 750 Bytes
Contents
class CreateSpreeStoreCreditEvents < ActiveRecord::Migration 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 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
19 entries across 19 versions & 1 rubygems