Sha256: 99ce8c455e71e0f066b65a0a1c4f6ed34aab4493fa02c59c10acc8c8590d2326

Contents?: true

Size: 817 Bytes

Versions: 6

Compression:

Stored size: 817 Bytes

Contents

# This migration comes from spree (originally 20150118212051)
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
    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

6 entries across 6 versions & 1 rubygems

Version Path
spree_purchase_order-3.6.0 spec/dummy/db/migrate/20180516182036_create_spree_store_credit_events.spree.rb
spree_purchase_order-3.5.0 spec/dummy/db/migrate/20180516182036_create_spree_store_credit_events.spree.rb
spree_purchase_order-3.5.0.rc1 spec/dummy/db/migrate/20180516182036_create_spree_store_credit_events.spree.rb
spree_purchase_order-3.4.0 spec/dummy/db/migrate/20180516182036_create_spree_store_credit_events.spree.rb
spree_purchase_order-3.3.0 spec/dummy/db/migrate/20180516182036_create_spree_store_credit_events.spree.rb
spree_purchase_order-3.2.0 spec/dummy/db/migrate/20180516182036_create_spree_store_credit_events.spree.rb