3scale/porta

View on GitHub
db/migrate/20080825093858_add_cancellation_period_to_contracts.rb

Summary

Maintainability
A
0 mins
Test Coverage
class AddCancellationPeriodToContracts < ActiveRecord::Migration
  def self.up
    change_table :contracts do |t|
      t.integer :cancellation_period, :null => false, :default => 0
    end
  end

  def self.down
    change_table :contracts do |t|
      t.remove :cancellation_period
    end
  end
end