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.7.2 db/migrate/20170205020145_create_pay_subscriptions.rb
pay-2.7.1 db/migrate/20170205020145_create_pay_subscriptions.rb
pay-2.7.0 db/migrate/20170205020145_create_pay_subscriptions.rb
pay-2.6.11 db/migrate/20170205020145_create_pay_subscriptions.rb
pay-2.6.10 db/migrate/20170205020145_create_pay_subscriptions.rb
pay-2.6.9 db/migrate/20170205020145_create_pay_subscriptions.rb
pay-2.6.8 db/migrate/20170205020145_create_pay_subscriptions.rb
pay-2.6.7 db/migrate/20170205020145_create_pay_subscriptions.rb
pay-2.6.6 db/migrate/20170205020145_create_pay_subscriptions.rb
pay-2.6.5 db/migrate/20170205020145_create_pay_subscriptions.rb
pay-2.6.4 db/migrate/20170205020145_create_pay_subscriptions.rb
pay-2.6.3 db/migrate/20170205020145_create_pay_subscriptions.rb
pay-2.6.2 db/migrate/20170205020145_create_pay_subscriptions.rb
pay-2.6.1 db/migrate/20170205020145_create_pay_subscriptions.rb
pay-2.6.0 db/migrate/20170205020145_create_pay_subscriptions.rb
pay-2.5.0 db/migrate/20170205020145_create_pay_subscriptions.rb
pay-2.4.4 db/migrate/20170205020145_create_pay_subscriptions.rb
pay-2.4.3 db/migrate/20170205020145_create_pay_subscriptions.rb
pay-2.4.2 db/migrate/20170205020145_create_pay_subscriptions.rb
pay-2.4.0 db/migrate/20170205020145_create_pay_subscriptions.rb