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

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