Sha256: 30727f19cd401009088528ab643be3a94e461b308587995dd80753f253dba8ec

Contents?: true

Size: 545 Bytes

Versions: 25

Compression:

Stored size: 545 Bytes

Contents

class CreatePaySubscriptions < ActiveRecord::Migration[4.2]
  def change
    create_table :pay_subscriptions do |t|
      # Some Billable objects use string as ID, add `type: :string` if needed
      t.references :owner, polymorphic: true
      t.string :name, null: false
      t.string :processor, null: false
      t.string :processor_id, null: false
      t.string :processor_plan, null: false
      t.integer :quantity, default: 1, null: false
      t.datetime :trial_ends_at
      t.datetime :ends_at

      t.timestamps
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
pay-2.3.1 db/migrate/20170205020145_create_pay_subscriptions.rb
pay-2.3.0 db/migrate/20170205020145_create_pay_subscriptions.rb
pay-2.2.2 db/migrate/20170205020145_create_pay_subscriptions.rb
pay-2.2.1 db/migrate/20170205020145_create_pay_subscriptions.rb
pay-2.2.0 db/migrate/20170205020145_create_pay_subscriptions.rb