public
Rubygem
Description: Makes tests easy on the fingers and the eyes
Homepage: http://www.thoughtbot.com/projects/shoulda
Clone URL: git://github.com/thoughtbot/shoulda.git
shoulda / test / rails_root / db / migrate / 010_add_zip_to_addresses.rb
100644 9 lines (8 sloc) 0.173 kb
1
2
3
4
5
6
7
8
9
class AddZipToAddresses < ActiveRecord::Migration
  def self.up
    add_column :addresses, :zip, :integer
  end
 
  def self.down
    remove_column :addresses, :zip
  end
end