Sha256: cdf68dcc195618a444d3a1b198d9f3356bcee227c60f6fcbef79f91c1fc2f608

Contents?: true

Size: 429 Bytes

Versions: 5

Compression:

Stored size: 429 Bytes

Contents

class CreateBillingcycles < ActiveRecord::Migration
  def self.up
    create_table  :billingcycles do |t|
      t.integer   :product_id,        :null=>false
      t.integer   :billingcycle_days, :null=>false
      t.integer   :billingcycle_price,:null=>false
      t.timestamps
    end
    add_index :billingcycles, [:product_id,:billingcycle_days], :unique => true
  end

  def self.down
    drop_table :billingcycles
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
smukherjee-openbill-0.1.5 db/migrate/20090518070457_create_billingcycles.rb
smukherjee-openbill-0.1.6 db/migrate/20090518070457_create_billingcycles.rb
smukherjee-openbill-0.1.7 db/migrate/20090518070457_create_billingcycles.rb
openbill-0.1.5 db/migrate/20090518070457_create_billingcycles.rb
openbill-0.1.6 db/migrate/20090518070457_create_billingcycles.rb