class, not instance method
This commit is contained in:
parent
2ff4af6800
commit
c256533a2f
1 changed files with 1 additions and 1 deletions
|
|
@ -1,5 +1,5 @@
|
|||
class DowncaseTags < ActiveRecord::Migration
|
||||
def consolidate_tags_with_name(name)
|
||||
def self.consolidate_tags_with_name(name)
|
||||
tags = execute("SELECT * FROM tags WHERE tags.name = ?;", name)
|
||||
keep_tag = tags.pop
|
||||
tags.each do |bad_tag|
|
||||
|
|
|
|||
Loading…
Reference in a new issue