Sha256: 3d687f227cdece4d3f09dc37c0e955646bd339f4a70ba26b9e88c566a715cbc7

Contents?: true

Size: 739 Bytes

Versions: 2

Compression:

Stored size: 739 Bytes

Contents

# This migration comes from spree (originally 20150506181244)
class CreateSpreeStoreCredits < ActiveRecord::Migration
  def change
    create_table :spree_store_credits do |t|
      t.references :user
      t.references :category
      t.references :created_by
      t.decimal :amount, precision: 8, scale: 2, default: 0.0, null: false
      t.decimal :amount_used, precision: 8, scale: 2, default: 0.0, null: false
      t.decimal :amount_authorized, precision: 8, scale: 2, default: 0.0, null: false
      t.string :currency
      t.text :memo
      t.datetime :spree_store_credits, :deleted_at
      t.timestamps null: true
    end

    add_index :spree_store_credits, :deleted_at
    add_index :spree_store_credits, :user_id
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spree_order_reporting-0.0.2 spec/dummy/db/migrate/20160707103580_create_spree_store_credits.spree.rb
spree_order_reporting-0.0.1 spec/dummy/db/migrate/20160706112532_create_spree_store_credits.spree.rb