Change older Paperclip database migrations for consistency (#30204)
This commit is contained in:
parent
2bcbeed951
commit
00cf8d3748
8 changed files with 48 additions and 8 deletions
|
@ -3,7 +3,11 @@
|
|||
class AddAttachmentAvatarToAccounts < ActiveRecord::Migration[4.2]
|
||||
def self.up
|
||||
change_table :accounts do |t|
|
||||
t.attachment :avatar
|
||||
# The following corresponds to `t.attachment :avatar` in an older version of Paperclip
|
||||
t.string :avatar_file_name
|
||||
t.string :avatar_content_type
|
||||
t.integer :avatar_file_size
|
||||
t.datetime :avatar_updated_at
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue