20160719104735_create_candidates.rb 263 Bytes
Newer Older
Galen Evilla's avatar
Galen Evilla committed
1 2 3 4 5 6 7 8 9 10 11 12
class CreateCandidates < ActiveRecord::Migration[5.0]
  def change
    create_table :candidates do |t|
      t.string :first_name
      t.string :last_name
      t.text :slogan
      t.references :position, foreign_key: true

      t.timestamps
    end
  end
end