1
0
mirror of https://github.com/fspc/BikeShed-1.git synced 2025-04-04 05:33:22 -04:00
BikeShed-1/db/migrate/20170118110330_add_attachment_avatar_to_users.rb
2017-01-18 17:18:32 +06:00

12 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