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