Skip to content

Instantly share code, notes, and snippets.

@knwang
Created October 8, 2011 18:55
Show Gist options
  • Select an option

  • Save knwang/1272700 to your computer and use it in GitHub Desktop.

Select an option

Save knwang/1272700 to your computer and use it in GitHub Desktop.
Proofing_oven: add full_name column migration
class AddFullNameColumnToCandidates < ActiveRecord::Migration
def self.up
add_column :candidates, :full_name, :string
end
def self.down
remove_column :candidates, :full_name
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment