Sha256: cc5f66f4a43eac00de90ca397c9ab8cb799c23ae3b15692b19f1c6dd2544e350

Contents?: true

Size: 382 Bytes

Versions: 5

Compression:

Stored size: 382 Bytes

Contents

class CreateRapidfireQuestions < ActiveRecord::Migration
  def change
    create_table :rapidfire_questions do |t|
      t.references :question_group
      t.string  :type
      t.string  :question_text
      t.integer :position
      t.text :answer_options
      t.text :validation_rules

      t.timestamps
    end
    add_index :rapidfire_questions, :question_group_id
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
rapidfire-2.1.0 db/migrate/20130502195310_create_rapidfire_questions.rb
rapidfire-2.0.0 db/migrate/20130502195310_create_rapidfire_questions.rb
unique_rapidfire-1.0.0 db/migrate/20130502195310_create_rapidfire_questions.rb
rapidfire-1.2.0 db/migrate/20130502195310_create_rapidfire_questions.rb
rapidfire-1.0.0 db/migrate/20130502195310_create_rapidfire_questions.rb