Skip to content

Commit

Permalink
Merge pull request #534 from sparc-request/jtm_removing_nexus_tag
Browse files Browse the repository at this point in the history
Jtm removing nexus tag
  • Loading branch information
jleonardw9 committed Jul 11, 2016
2 parents 232de92 + 49d0b18 commit b4de146
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ def self.down
add_index :taggings, :tag_id
add_index :taggings, [:taggable_id, :taggable_type, :context]
end
end
end
11 changes: 11 additions & 0 deletions db/migrate/20160627160134_remove_nexus_tag.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
class Tag < ActiveRecord::Base
audited
attr_accessible :name
has_many :taggings, dependent: :destroy, class_name: '::ActsAsTaggableOn::Tagging'
end

class RemoveNexusTag < ActiveRecord::Migration
def change
Tag.where(name: 'ctrc_clinical_services').destroy_all
end
end

0 comments on commit b4de146

Please sign in to comment.