Sha256: d64259b01efe5cd79c2e27e9a7a16f0cf773db6a3b137972e1715ba279df7b1a

Contents?: true

Size: 402 Bytes

Versions: 5

Compression:

Stored size: 402 Bytes

Contents

class CreateTasksTaskablesQuestionAnswers < ActiveRecord::Migration
  def change
    create_table :tasks_taskables_question_answers do |t|
      t.references :option, index: true
      t.references :author, polymorphic: true

      t.timestamps
    end

    add_index :tasks_taskables_question_answers, [:author_id, :author_type], unique: true, name: 'tasks_taskable_question_answers_author'
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
tasuku-1.1.0 db/migrate/20140316204119_create_tasks_taskables_question_answers.rb
tasuku-1.0.1 db/migrate/20140316204119_create_tasks_taskables_question_answers.rb
tasuku-0.1.1 db/migrate/20140316204119_create_tasks_taskables_question_answers.rb
tasuku-0.1.0 db/migrate/20140316204119_create_tasks_taskables_question_answers.rb
tasuku-0.0.1 db/migrate/20140316204119_create_tasks_taskables_question_answers.rb