Sha256: ced8946b5df4544186c80c5173478e27447d6b56162f4c61add0de5d9cda812d

Contents?: true

Size: 446 Bytes

Versions: 3

Compression:

Stored size: 446 Bytes

Contents

class CreateSusplyPayments < ActiveRecord::Migration
  def change
    create_table :susply_payments do |t|
      t.integer :owner_id
      t.integer :plan_id
      t.integer :subscription_id
      t.integer :amount
      t.datetime :period_start
      t.datetime :period_end
      t.string :status
      t.string :invoice
      t.string :generated_type

      t.timestamps null: false
    end

    add_index :susply_payments, :owner_id
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
susply-1.0.0 db/migrate/20150521222634_create_susply_payments.rb
susply-0.0.2 db/migrate/20150521222634_create_susply_payments.rb
susply-0.0.1 db/migrate/20150521222634_create_susply_payments.rb