Sha256: 38d21242444d0524534c50bfe2767c82eaf0acd6e32005c0564df42b8754f357

Contents?: true

Size: 264 Bytes

Versions: 7

Compression:

Stored size: 264 Bytes

Contents

class AddContentTitleUniqueConstraint < ActiveRecord::Migration[4.2]
  def change
    remove_index :foreman_openscap_scap_contents, :name => 'index_scaptimony_scap_contents_on_title'
    add_index :foreman_openscap_scap_contents, :title, :unique => true
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
foreman_openscap-0.10.2 db/migrate/20171016125613_add_content_title_unique_constraint.foreman_openscap.rb
foreman_openscap-0.10.1 db/migrate/20171016125613_add_content_title_unique_constraint.foreman_openscap.rb
foreman_openscap-0.9.3 db/migrate/20171016125613_add_content_title_unique_constraint.foreman_openscap.rb
foreman_openscap-0.10.0 db/migrate/20171016125613_add_content_title_unique_constraint.foreman_openscap.rb
foreman_openscap-0.9.2 db/migrate/20171016125613_add_content_title_unique_constraint.foreman_openscap.rb
foreman_openscap-0.9.1 db/migrate/20171016125613_add_content_title_unique_constraint.foreman_openscap.rb
foreman_openscap-0.9.0 db/migrate/20171016125613_add_content_title_unique_constraint.foreman_openscap.rb