Sha256: 4f59e879c93899767289cc663f6855c06ade71c27d68b711dbc277bd41fd7db3

Contents?: true

Size: 512 Bytes

Versions: 20

Compression:

Stored size: 512 Bytes

Contents

# frozen_string_literal: true

class AddPayBillableTo<%= table_name.camelize %> < ActiveRecord::Migration<%= migration_version %>
  def change
    change_table :<%= table_name %>, bulk: true do |t|
      t.string :processor
      t.string :processor_id
      t.public_send(Pay::Adapter.json_column_type, :pay_data)
      t.datetime :trial_ends_at
      t.string :card_type
      t.string :card_last4
      t.string :card_exp_month
      t.string :card_exp_year
      t.text :extra_billing_info
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
pay-3.0.19 lib/generators/active_record/templates/billable_migration.rb
pay-3.0.18 lib/generators/active_record/templates/billable_migration.rb
pay-3.0.17 lib/generators/active_record/templates/billable_migration.rb
pay-3.0.16 lib/generators/active_record/templates/billable_migration.rb
pay-3.0.15 lib/generators/active_record/templates/billable_migration.rb
pay-3.0.14 lib/generators/active_record/templates/billable_migration.rb
pay-3.0.13 lib/generators/active_record/templates/billable_migration.rb
pay-3.0.12 lib/generators/active_record/templates/billable_migration.rb
pay-3.0.11 lib/generators/active_record/templates/billable_migration.rb
pay-3.0.10 lib/generators/active_record/templates/billable_migration.rb
pay-3.0.9 lib/generators/active_record/templates/billable_migration.rb
pay-3.0.8 lib/generators/active_record/templates/billable_migration.rb
pay-3.0.7 lib/generators/active_record/templates/billable_migration.rb
pay-3.0.6 lib/generators/active_record/templates/billable_migration.rb
pay-3.0.5 lib/generators/active_record/templates/billable_migration.rb
pay-3.0.4 lib/generators/active_record/templates/billable_migration.rb
pay-3.0.2 lib/generators/active_record/templates/billable_migration.rb
pay-3.0.1 lib/generators/active_record/templates/billable_migration.rb
pay-3.0.0 lib/generators/active_record/templates/billable_migration.rb
pay-2.7.2 lib/generators/active_record/templates/billable_migration.rb