From 2c70f0ecaa507427d2592434cb4a516bcedd5039 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Sun, 28 Feb 2016 00:02:59 +0100 Subject: Adding paperclip for avatars, fixing design of the public pages --- .../20160227230233_add_attachment_avatar_to_accounts.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 db/migrate/20160227230233_add_attachment_avatar_to_accounts.rb (limited to 'db/migrate') diff --git a/db/migrate/20160227230233_add_attachment_avatar_to_accounts.rb b/db/migrate/20160227230233_add_attachment_avatar_to_accounts.rb new file mode 100644 index 000000000..99d88e5ec --- /dev/null +++ b/db/migrate/20160227230233_add_attachment_avatar_to_accounts.rb @@ -0,0 +1,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 -- cgit