Sha256: 7fcd9af398c5bd96747430aa37c27a52988a9d0f83d246c821ebf81c12f807d4

Contents?: true

Size: 675 Bytes

Versions: 15

Compression:

Stored size: 675 Bytes

Contents

class AddFieldsToBillable < ActiveRecord::Migration[4.2]
  def change
    unless ActiveRecord::Base.connection.table_exists?(Pay.billable_table)
      create_table Pay.billable_table.to_sym
    end

    add_column Pay.billable_table, :processor, :string
    add_column Pay.billable_table, :processor_id, :string
    add_column Pay.billable_table, :trial_ends_at, :datetime
    add_column Pay.billable_table, :card_type, :string
    add_column Pay.billable_table, :card_last4, :string
    add_column Pay.billable_table, :card_exp_month, :string
    add_column Pay.billable_table, :card_exp_year, :string
    add_column Pay.billable_table, :extra_billing_info, :text
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
pay-2.1.1 db/migrate/20170503131610_add_fields_to_billable.rb
pay-2.1.0 db/migrate/20170503131610_add_fields_to_billable.rb
pay-2.0.3 db/migrate/20170503131610_add_fields_to_billable.rb
pay-2.0.2 db/migrate/20170503131610_add_fields_to_billable.rb
pay-2.0.1 db/migrate/20170503131610_add_fields_to_billable.rb
pay-2.0.0 db/migrate/20170503131610_add_fields_to_billable.rb
pay-1.0.2 db/migrate/20170503131610_add_fields_to_billable.rb
pay-1.0.1 db/migrate/20170503131610_add_fields_to_billable.rb
pay-1.0.0 db/migrate/20170503131610_add_fields_to_billable.rb
pay-1.0.0.rc3 db/migrate/20170503131610_add_fields_to_billable.rb
pay-1.0.0.rc2 db/migrate/20170503131610_add_fields_to_billable.rb
pay-1.0.0.rc1 db/migrate/20170503131610_add_fields_to_billable.rb
pay-1.0.0.beta5 db/migrate/20170503131610_add_fields_to_billable.rb
pay-1.0.0.beta4 db/migrate/20170503131610_add_fields_to_billable.rb
pay-1.0.0.beta3 db/migrate/20170503131610_add_fields_to_billable.rb