Sha256: 4af077d1150ed66a3a4abdd3b613c1f7ed00a393e14ebea9bcdd178f12015969

Contents?: true

Size: 314 Bytes

Versions: 5

Compression:

Stored size: 314 Bytes

Contents

class RemoveUniqueConstraintOnImageResponseAuthor < ActiveRecord::Migration
  def up
    remove_index :tasks_taskables_image_responses, name: 'tasks_taskable_image_responses_author'
    add_index :tasks_taskables_image_responses, [:author_id, :author_type], name: 'tasks_taskable_image_responses_author'
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
tasuku-1.1.0 db/migrate/20140403090537_remove_unique_constraint_on_image_response_author.rb
tasuku-1.0.1 db/migrate/20140403090537_remove_unique_constraint_on_image_response_author.rb
tasuku-0.1.1 db/migrate/20140403090537_remove_unique_constraint_on_image_response_author.rb
tasuku-0.1.0 db/migrate/20140403090537_remove_unique_constraint_on_image_response_author.rb
tasuku-0.0.1 db/migrate/20140403090537_remove_unique_constraint_on_image_response_author.rb