diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-02-28 00:02:59 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-02-28 00:02:59 +0100 |
commit | 2c70f0ecaa507427d2592434cb4a516bcedd5039 (patch) | |
tree | 7d5382144ae1c6d8f87af3b09c06654db5740684 /db/migrate | |
parent | fa29ef3a41816ee915c52707bcd9db6cc9cdf7d6 (diff) |
Adding paperclip for avatars, fixing design of the public pages
Diffstat (limited to 'db/migrate')
-rw-r--r-- | db/migrate/20160227230233_add_attachment_avatar_to_accounts.rb | 11 |
1 files changed, 11 insertions, 0 deletions
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 |