summaryrefslogtreecommitdiffstats
path: root/db/migrate/20160227230233_add_attachment_avatar_to_accounts.rb
diff options
context:
space:
mode:
authorMatt Jankowski <matt@jankowski.online>2024-06-21 10:43:12 -0400
committerGitHub <noreply@github.com>2024-06-21 14:43:12 +0000
commit4651c0cb39c1a1e4feb6d8fc2b53de622eeb7373 (patch)
treee735fe387fd853fed4c9161718309cf5ea567630 /db/migrate/20160227230233_add_attachment_avatar_to_accounts.rb
parent2cab1c7b09f64cae8128fa33645137fe55daf075 (diff)
Fix `Rails/ReversibleMigrationMethodDefinition` cop (#30794)
Diffstat (limited to 'db/migrate/20160227230233_add_attachment_avatar_to_accounts.rb')
-rw-r--r--db/migrate/20160227230233_add_attachment_avatar_to_accounts.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/db/migrate/20160227230233_add_attachment_avatar_to_accounts.rb b/db/migrate/20160227230233_add_attachment_avatar_to_accounts.rb
index 534df25eed1..cfe4c23de3a 100644
--- a/db/migrate/20160227230233_add_attachment_avatar_to_accounts.rb
+++ b/db/migrate/20160227230233_add_attachment_avatar_to_accounts.rb
@@ -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