Files
nairobi/db/migrate/20161028143204_create_geozones_poll_questions.rb
2016-10-28 18:02:28 +02:00

11 lines
327 B
Ruby

class CreateGeozonesPollQuestions < ActiveRecord::Migration
def change
create_table :geozones_poll_questions do |t|
t.references :geozone, index: true, foreign_key: true
t.integer :question_id, index: true
end
add_foreign_key :geozones_poll_questions, :poll_questions, column: :question_id
end
end