Fix Rails/ReversibleMigrationMethodDefinition
cop (#30794)
This commit is contained in:
parent
2cab1c7b09
commit
4651c0cb39
5 changed files with 10 additions and 10 deletions
|
@ -1,7 +1,7 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class AddAttachmentDataToImports < ActiveRecord::Migration[4.2]
|
||||
def self.up
|
||||
def up
|
||||
change_table :imports do |t|
|
||||
# The following corresponds to `t.attachment :data` in an older version of Paperclip
|
||||
t.string :data_file_name
|
||||
|
@ -11,7 +11,7 @@ class AddAttachmentDataToImports < ActiveRecord::Migration[4.2]
|
|||
end
|
||||
end
|
||||
|
||||
def self.down
|
||||
def down
|
||||
remove_attachment :imports, :data
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue