Sha256: d768e6d9a6b3c567fa4fe7d7cb71e881676abec8805c5bfcf62a644a1ffb3a12

Contents?: true

Size: 302 Bytes

Versions: 16

Compression:

Stored size: 302 Bytes

Contents

class AddUniqueConstraintToProfileAnswers < ActiveRecord::Migration
  def change
    add_index(:social_networking_profile_answers,
              [:social_networking_profile_id, :social_networking_profile_question_id],
              unique: true,
              name: 'profile_answers_unique')
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
social_networking-0.13.3 db/migrate/20140930141007_add_unique_constraint_to_profile_answers.rb
social_networking-0.13.2 db/migrate/20140930141007_add_unique_constraint_to_profile_answers.rb
social_networking-0.13.1 db/migrate/20140930141007_add_unique_constraint_to_profile_answers.rb
social_networking-0.13.0 db/migrate/20140930141007_add_unique_constraint_to_profile_answers.rb
social_networking-0.12.0 db/migrate/20140930141007_add_unique_constraint_to_profile_answers.rb
social_networking-0.11.8 db/migrate/20140930141007_add_unique_constraint_to_profile_answers.rb
social_networking-0.11.7 db/migrate/20140930141007_add_unique_constraint_to_profile_answers.rb
social_networking-0.11.6 db/migrate/20140930141007_add_unique_constraint_to_profile_answers.rb
social_networking-0.11.5 db/migrate/20140930141007_add_unique_constraint_to_profile_answers.rb
social_networking-0.11.4 db/migrate/20140930141007_add_unique_constraint_to_profile_answers.rb
social_networking-0.11.3 db/migrate/20140930141007_add_unique_constraint_to_profile_answers.rb
social_networking-0.11.2 db/migrate/20140930141007_add_unique_constraint_to_profile_answers.rb
social_networking-0.11.1 db/migrate/20140930141007_add_unique_constraint_to_profile_answers.rb
social_networking-0.11.0 db/migrate/20140930141007_add_unique_constraint_to_profile_answers.rb
social_networking-0.10.0 db/migrate/20140930141007_add_unique_constraint_to_profile_answers.rb
social_networking-0.9.3 db/migrate/20140930141007_add_unique_constraint_to_profile_answers.rb