12 lines
207 B
Ruby
12 lines
207 B
Ruby
|
class AddAvatarToUsers < ActiveRecord::Migration
|
||
|
def change
|
||
|
change_table :users do |t|
|
||
|
t.has_attached_file :avatar
|
||
|
end
|
||
|
end
|
||
|
|
||
|
def self.down
|
||
|
drop_attached_file :users, :avatar
|
||
|
end
|
||
|
end
|