Sha256: 8efa70071f08aaa986f635ab4e6f095cff01cb56d4c16aa3f56243bfaec2fb29

Contents?: true

Size: 302 Bytes

Versions: 14

Compression:

Stored size: 302 Bytes

Contents

# frozen_string_literal: true

class AddUniqueIndexes < ActiveRecord::Migration[5.2]
  def change
    add_index :post_types, :name, unique: true
    add_index :redirects, :from_path, unique: true
    add_index :tags, [:blog_id, :name], unique: true
    add_index :users, :login, unique: true
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
publify_core-10.0.2 db/migrate/20200413140440_add_unique_indexes.rb
publify_core-10.0.1 db/migrate/20200413140440_add_unique_indexes.rb
publify_core-10.0.0 db/migrate/20200413140440_add_unique_indexes.rb
publify_core-9.2.10 db/migrate/20200413140440_add_unique_indexes.rb
publify_core-9.2.9 db/migrate/20200413140440_add_unique_indexes.rb
publify_core-9.2.8 db/migrate/20200413140440_add_unique_indexes.rb
publify_core-9.2.7 db/migrate/20200413140440_add_unique_indexes.rb
publify_core-9.2.6 db/migrate/20200413140440_add_unique_indexes.rb
publify_core-9.2.5 db/migrate/20200413140440_add_unique_indexes.rb
publify_core-9.2.4 db/migrate/20200413140440_add_unique_indexes.rb
publify_core-9.2.3 db/migrate/20200413140440_add_unique_indexes.rb
publify_core-9.2.2 db/migrate/20200413140440_add_unique_indexes.rb
publify_core-9.2.1 db/migrate/20200413140440_add_unique_indexes.rb
publify_core-9.2.0 db/migrate/20200413140440_add_unique_indexes.rb