class AddFieldsToLocation < ActiveRecord::Migration def self.up add_column :locations, :address1, :string add_column :locations, :address2, :string add_column :locations, :city, :string add_column :locations, :state_province, :string add_column :locations, :postal_code, :string add_column :locations, :country, :string add_column :locations, :phone, :string add_column :locations, :email, :string end def self.down remove_column :locations, :address1 remove_column :locations, :address2 remove_column :locations, :city remove_column :locations, :state_province remove_column :locations, :postal_code remove_column :locations, :country remove_column :locations, :phone remove_column :locations, :email end end