Skip to content

Commit

Permalink
Merge pull request #1381 from tvdeyen/skip-gutentag-migration
Browse files Browse the repository at this point in the history
Skip migrate-to-gutentag migration for fresh installs
  • Loading branch information
tvdeyen authored Mar 6, 2018
2 parents a794362 + 54a42fd commit a0ec233
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion db/migrate/20180227224537_migrate_tags_to_gutentag.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
class MigrateTagsToGutentag < ActiveRecord::Migration[5.0]
def change
def up
return if table_exists?(:gutentag_tags)

remove_index :taggings, :taggable_id
remove_column :taggings, :tagger_id, :integer
remove_index :taggings, :taggable_type
Expand Down

0 comments on commit a0ec233

Please sign in to comment.