11 lines
210 B
Ruby
11 lines
210 B
Ruby
class AddAttachmentAvatarToUsers < ActiveRecord::Migration
|
|
def self.up
|
|
change_table :users do |t|
|
|
t.attachment :avatar
|
|
end
|
|
end
|
|
|
|
def self.down
|
|
remove_attachment :users, :avatar
|
|
end
|
|
end
|