Sha256: 61687a397a0216de047f811520655424e72495e312d9158da3dc9c7b2ef876d4

Contents?: true

Size: 476 Bytes

Versions: 13

Compression:

Stored size: 476 Bytes

Contents

# Upgrade to scoped slugs
class RemoveUniqueSlugConstraint < ActiveRecord::Migration
  def change
    # Categories
    remove_index :guts_categories, :slug
    add_index :guts_categories, :slug

    # Content
    remove_index :guts_contents, :slug
    add_index :guts_contents, :slug

    # Navigations
    remove_index :guts_navigations, :slug
    add_index :guts_navigations, :slug

    # Types
    remove_index :guts_types, :slug
    add_index :guts_types, :slug
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
guts-3.0.1 db/migrate/20160726010421_remove_unique_slug_constraint.rb
guts-3.0.0 db/migrate/20160726010421_remove_unique_slug_constraint.rb
guts-2.1.0 db/migrate/20160726010421_remove_unique_slug_constraint.rb
guts-2.0.2 db/migrate/20160726010421_remove_unique_slug_constraint.rb
guts-2.0.1 db/migrate/20160726010421_remove_unique_slug_constraint.rb
guts-2.0.0 db/migrate/20160726010421_remove_unique_slug_constraint.rb
guts-1.4.0 db/migrate/20160726010421_remove_unique_slug_constraint.rb
guts-1.3.6 db/migrate/20160726010421_remove_unique_slug_constraint.rb
guts-1.3.5 db/migrate/20160726010421_remove_unique_slug_constraint.rb
guts-1.3.4 db/migrate/20160726010421_remove_unique_slug_constraint.rb
guts-1.3.3 db/migrate/20160726010421_remove_unique_slug_constraint.rb
guts-1.3.2 db/migrate/20160726010421_remove_unique_slug_constraint.rb
guts-1.3.1 db/migrate/20160726010421_remove_unique_slug_constraint.rb