Sha256: 7bf98b17be25790c98b23abce68abfacfd8bfc5016be3b9f121b49d13b178c9f

Contents?: true

Size: 261 Bytes

Versions: 2

Compression:

Stored size: 261 Bytes

Contents

class CreateQuizzesQuestions < ActiveRecord::Migration[5.0]
  def change
    create_table :quizzes_questions do |t|
      t.string :text
      t.references :level, foreign_key: {to_table: :quizzes_levels, name: "level_id"}

      t.timestamps
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
quizzes-0.1.1 db/migrate/20160816211615_create_quizzes_questions.rb
quizzes-0.1.0 db/migrate/20160816211615_create_quizzes_questions.rb