about summary refs log tree commit diff
path: root/db/migrate
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-03-12 20:47:22 +0100
committerEugen Rochko <eugen@zeonfederated.com>2016-03-12 20:47:22 +0100
commit34413615683677e26213263fb98f63b5aab64872 (patch)
tree7e682e8709ecfd5347316ea39240789548795606 /db/migrate
parent1aa477ac2f0e9195497899691bb5cc16a7034c01 (diff)
Adding simple_form, adding profile settings, header image
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20160312193225_add_attachment_header_to_accounts.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/db/migrate/20160312193225_add_attachment_header_to_accounts.rb b/db/migrate/20160312193225_add_attachment_header_to_accounts.rb
new file mode 100644
index 000000000..bdd09c367
--- /dev/null
+++ b/db/migrate/20160312193225_add_attachment_header_to_accounts.rb
@@ -0,0 +1,11 @@
+class AddAttachmentHeaderToAccounts < ActiveRecord::Migration
+  def self.up
+    change_table :accounts do |t|
+      t.attachment :header
+    end
+  end
+
+  def self.down
+    remove_attachment :accounts, :header
+  end
+end