Sha256: b81d71a6502ad1efa02b0391c7033c339d2ede0727156126df58b96f9f895c30

Contents?: true

Size: 1.08 KB

Versions: 5

Compression:

Stored size: 1.08 KB

Contents

class CreateWepayCheckoutRecords < ActiveRecord::Migration
    def self.up

        create_table :wepay_checkout_records do |t|
            t.integer :checkout_id
            t.integer :account_id
            t.string :state
            t.string :short_description
            t.text :long_description
            t.string :currency
            t.decimal :amount
            t.decimal :app_fee
            t.string :fee_payer
            t.decimal :gross
            t.decimal :fee
            t.string :reference_id
            t.text :redirect_uri
            t.text :callback_uri
            t.text :checkout_uri
            t.string :payer_email
            t.string :payer_name
            t.text :cancel_reason
            t.text :refund_reason
            t.boolean :auto_capture
            t.boolean :require_shipping
            t.text :shipping_address
            t.decimal :tax
            t.string :security_token

            t.timestamps
        end

        add_index :wepay_checkout_records, :checkout_id
    end

    def self.down
        drop_table :wepay_checkout_records
    end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
wepay-rails-2.2.4 lib/generators/wepay_rails/install/templates/create_wepay_checkout_records.rb
wepay-rails-2.2.3 lib/generators/wepay_rails/install/templates/create_wepay_checkout_records.rb
wepay-rails-2.2.2 lib/generators/wepay_rails/install/templates/create_wepay_checkout_records.rb
wepay-rails-2.2.1 lib/generators/wepay_rails/install/templates/create_wepay_checkout_records.rb
wepay-rails-2.2.0 lib/generators/wepay_rails/install/templates/create_wepay_checkout_records.rb