20160227230233_add_attachment_avatar_to_accounts.rb 255 B

12345678910111213
  1. # frozen_string_literal: true
  2. class AddAttachmentAvatarToAccounts < ActiveRecord::Migration[4.2]
  3. def self.up
  4. change_table :accounts do |t|
  5. t.attachment :avatar
  6. end
  7. end
  8. def self.down
  9. remove_attachment :accounts, :avatar
  10. end
  11. end