Sha256: 97d1799ff81467e9703f2af9e18945d4fee489c1d577a088c53cd0ae839aa063

Contents?: true

Size: 330 Bytes

Versions: 5

Compression:

Stored size: 330 Bytes

Contents

class RemoveUniqueConstraintOnTaskTaskableQuestionAnswerIndex < ActiveRecord::Migration
  def up
    remove_index :tasks_taskables_question_answers, name: 'tasks_taskable_question_answers_author'
    add_index :tasks_taskables_question_answers, [:author_id, :author_type], 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/20140316221703_remove_unique_constraint_on_task_taskable_question_answer_index.rb
tasuku-1.0.1 db/migrate/20140316221703_remove_unique_constraint_on_task_taskable_question_answer_index.rb
tasuku-0.1.1 db/migrate/20140316221703_remove_unique_constraint_on_task_taskable_question_answer_index.rb
tasuku-0.1.0 db/migrate/20140316221703_remove_unique_constraint_on_task_taskable_question_answer_index.rb
tasuku-0.0.1 db/migrate/20140316221703_remove_unique_constraint_on_task_taskable_question_answer_index.rb