Skip to content

Commit

Permalink
Merge pull request spree#7369 from vishalzambre/tag_migration_rename
Browse files Browse the repository at this point in the history
Rename tag migrations to spree
  • Loading branch information
damianlegawiec committed May 24, 2016
2 parents 4afc2bb + a71f824 commit db3fe00
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class ActsAsTaggableOnMigration < ActiveRecord::Migration
class ActsAsTaggableOnSpreeMigration < ActiveRecord::Migration
def self.up
create_table :spree_tags do |t|
t.string :name
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This migration is added to circumvent issue #623 and have special characters
# work properly
class ChangeCollationForTagNames < ActiveRecord::Migration
class ChangeCollationForSpreeTagNames < ActiveRecord::Migration
def up
if ActsAsTaggableOn::Utils.using_mysql?
execute("ALTER TABLE spree_tags MODIFY name varchar(255) CHARACTER SET utf8 COLLATE utf8_bin;")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddMissingIndexes < ActiveRecord::Migration
class AddMissingIndexesToSpreeTaggings < ActiveRecord::Migration
def change
add_index :spree_taggings, :tag_id
add_index :spree_taggings, :taggable_id
Expand Down

0 comments on commit db3fe00

Please sign in to comment.