Fix Rails/ReversibleMigrationMethodDefinition cop (#30794)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class AddAttachmentAvatarToAccounts < ActiveRecord::Migration[4.2]
|
||||
def self.up
|
||||
def up
|
||||
change_table :accounts do |t|
|
||||
# The following corresponds to `t.attachment :avatar` in an older version of Paperclip
|
||||
t.string :avatar_file_name
|
||||
@@ -11,7 +11,7 @@ class AddAttachmentAvatarToAccounts < ActiveRecord::Migration[4.2]
|
||||
end
|
||||
end
|
||||
|
||||
def self.down
|
||||
def down
|
||||
remove_attachment :accounts, :avatar
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user