Sha256: 0e0648f1ea49fe4eee4742acb429b485a9f73d4abe296056aa178f9454e47a94

Contents?: true

Size: 275 Bytes

Versions: 37

Compression:

Stored size: 275 Bytes

Contents

class CreateBillingCharges < ActiveRecord::Migration
  def change
    create_table :billing_charges do |t|
      t.belongs_to :account, index: true
      t.references :chargable, polymorphic: true, index: true
      t.money :price
      
      t.timestamps
    end
  end
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
billing-0.2.2 db/migrate/20140717181134_create_billing_charges.rb
billing-0.2.1 db/migrate/20140717181134_create_billing_charges.rb
billing-0.2.0 db/migrate/20140717181134_create_billing_charges.rb
billing-0.1.9 db/migrate/20140717181134_create_billing_charges.rb
billing-0.1.8 db/migrate/20140717181134_create_billing_charges.rb
billing-0.1.7 db/migrate/20140717181134_create_billing_charges.rb
billing-0.1.6 db/migrate/20140717181134_create_billing_charges.rb
billing-0.1.5 db/migrate/20140717181134_create_billing_charges.rb
billing-0.1.4 db/migrate/20140717181134_create_billing_charges.rb
billing-0.1.3 db/migrate/20140717181134_create_billing_charges.rb
billing-0.1.2a db/migrate/20140717181134_create_billing_charges.rb
billing-0.1.2 db/migrate/20140717181134_create_billing_charges.rb
billing-0.1.1 db/migrate/20140717181134_create_billing_charges.rb
billing-0.1.0a db/migrate/20140717181134_create_billing_charges.rb
billing-0.1.0 db/migrate/20140717181134_create_billing_charges.rb
billing-0.0.9 db/migrate/20140717181134_create_billing_charges.rb
billing-0.0.8a db/migrate/20140717181134_create_billing_charges.rb
billing-0.0.8 db/migrate/20140717181134_create_billing_charges.rb
billing-0.0.7i db/migrate/20140717181134_create_billing_charges.rb
billing-0.0.7g db/migrate/20140717181134_create_billing_charges.rb