about summary refs log tree commit diff
path: root/db/migrate
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-02-28 00:02:59 +0100
committerEugen Rochko <eugen@zeonfederated.com>2016-02-28 00:02:59 +0100
commit2c70f0ecaa507427d2592434cb4a516bcedd5039 (patch)
tree7d5382144ae1c6d8f87af3b09c06654db5740684 /db/migrate
parentfa29ef3a41816ee915c52707bcd9db6cc9cdf7d6 (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.rb11
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