about summary refs log tree commit diff
path: root/db/migrate/20160227230233_add_attachment_avatar_to_accounts.rb
blob: 99d88e5ecf26c53e04df792284f7062f6e5c0883 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
class AddAttachmentAvatarToAccounts < ActiveRecord::Migration
  def self.up
    change_table :accounts do |t|
      t.attachment :avatar
    end
  end

  def self.down
    remove_attachment :accounts, :avatar
  end
end