Skip to content

Commit

Permalink
release 9.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
seuros committed Jan 7, 2022
1 parent 954e7ce commit 866c38f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Appraisals
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ appraise 'activerecord-6.1' do
end

appraise 'activerecord-7.0' do
gem 'activerecord', '~> 7.0.0'
gem 'activerecord', '~> 7.0.1'
gem 'pg'
gem 'mysql2', '~> 0.5'
end
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ Each change should fall into categories that would affect whether the release is

As such, _Breaking Changes_ are major. _Features_ would map to either major or minor. _Fixes_, _Performance_, and _Misc_ are either minor or patch, the difference being kind of fuzzy for the purposes of history. Adding _Documentation_ (including tests) would be patch level.

### [v9.0.1) / 2022-01-07](https://github.com/mbleigh/acts-as-taggable-on/compare/v8.1.0...v9.0.0)
* Fixes
* Fix migration that generate default index

### [v9.0.0) / 2022-01-04](https://github.com/mbleigh/acts-as-taggable-on/compare/v8.1.0...v9.0.0)
* Fixes
* Support activerecord-7.0.0
Expand Down
5 changes: 1 addition & 4 deletions db/migrate/2_add_missing_unique_indices.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@ class AddMissingUniqueIndices < ActiveRecord::Migration[6.0]
def self.up
add_index ActsAsTaggableOn.tags_table, :name, unique: true

if index_exists?(ActsAsTaggableOn.taggings_table, :tag_id)
remove_foreign_key ActsAsTaggableOn.taggings_table, ActsAsTaggableOn.tags_table
remove_index ActsAsTaggableOn.taggings_table, :tag_id
end
remove_index ActsAsTaggableOn.taggings_table, :tag_id if index_exists?(ActsAsTaggableOn.taggings_table, :tag_id)
remove_index ActsAsTaggableOn.taggings_table, name: 'taggings_taggable_context_idx'
add_index ActsAsTaggableOn.taggings_table,
%i[tag_id taggable_id taggable_type context tagger_id tagger_type],
Expand Down
2 changes: 1 addition & 1 deletion lib/acts_as_taggable_on/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module ActsAsTaggableOn
VERSION = '9.0.0'
VERSION = '9.0.1'
end

0 comments on commit 866c38f

Please sign in to comment.