-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Integrated act_as_paranoid and added ignore_deleted option
Integrated act_as_paranoid and added ignore_deleted option Integrated act_as_paranoid and added ignore_deleted option Integrated act_as_paranoid and added ignore_deleted option Integrated act_as_paranoid and added ignore_deleted option Integrated act_as_paranoid and added ignore_deleted option Integrated act_as_paranoid and added ignore_deleted option Integrated act_as_paranoid and added ignore_deleted option Integrated act_as_paranoid and added ignore_deleted option Updated CHANGELOG Fixed Gem::LoadError: Specified 'sqlite3' Fixed spec Removed sqlite3 from gem spec Fixed incorrect tagging alias table Refactor specs Added sqlite3 to Gemfile Fixed sqlite3 version for active_record 5.0 ref Remove 'acts_as_paranoid' as dependency and add to Gemfile Transferred acts_as_paranoid to invidividual active record versions
- Loading branch information
1 parent
fbf2b60
commit 8e49837
Showing
15 changed files
with
68 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
if ActiveRecord.gem_version >= Gem::Version.new('5.0') | ||
class AddMissingIndexesOnTaggings < ActiveRecord::Migration[4.2]; end | ||
else | ||
class AddMissingIndexesOnTaggings < ActiveRecord::Migration; end | ||
end | ||
AddDeletedAtOnTaggings.class_eval do | ||
def self.up | ||
add_column ActsAsTaggableOn.taggings_table, :deleted_at, :datetime | ||
add_index ActsAsTaggableOn.taggings_table, :deleted_at unless index_exists? ActsAsTaggableOn.taggings_table, :deleted_at | ||
end | ||
|
||
def self.down | ||
index_exists? ActsAsTaggableOn.taggings_table, :deleted_at && remove_index ActsAsTaggableOn.taggings_table, :deleted_at | ||
column_exists? ActsAsTaggableOn.taggings_table, :deleted_at && remove_column ActsAsTaggableOn.taggings_table, :deleted_at | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,7 @@ when "mysql" | |
else | ||
gem 'sqlite3' | ||
end | ||
gem 'acts_as_paranoid' | ||
|
||
group :local_development do | ||
gem "guard" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,7 @@ when "mysql" | |
else | ||
gem 'sqlite3' | ||
end | ||
gem 'acts_as_paranoid' | ||
|
||
group :local_development do | ||
gem "guard" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,7 @@ when "mysql" | |
else | ||
gem 'sqlite3' | ||
end | ||
gem 'acts_as_paranoid' | ||
|
||
group :local_development do | ||
gem "guard" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters