Skip to content

Instantly share code, notes, and snippets.

@knwang
Created October 5, 2011 00:19
Show Gist options
  • Save knwang/1263237 to your computer and use it in GitHub Desktop.
Save knwang/1263237 to your computer and use it in GitHub Desktop.
Proofing_oven: Create Candidate Migration
class CreateCandidates < ActiveRecord::Migration
def self.up
create_table :candidates do |t|
t.string :first_name
t.string :last_name
t.string :phone
t.string :email
t.string :github
t.string :twitter
t.boolean :local
t.boolean :willing_to_relocate
t.date :added_on
t.string :status
t.timestamps
end
end
def self.down
drop_table :candidates
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment