about summary refs log tree commit diff
path: root/db/migrate/20170913000752_create_site_uploads.rb
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2017-09-14 00:04:30 +0200
committerGitHub <noreply@github.com>2017-09-14 00:04:30 +0200
commit9239e4ce4d4e958e62552d4a01183d0295c020f5 (patch)
tree8f33707c027e2c10b62c0c6fffe1eb3bf27d38ef /db/migrate/20170913000752_create_site_uploads.rb
parent06f26e09b4bff120181eaaeb70a833482368ea63 (diff)
Uploads for admin site settings (#4913)
* Improve OpenGraph tags for about pages

* Add thumbnail admin setting

* Fix error

* Fix up
Diffstat (limited to 'db/migrate/20170913000752_create_site_uploads.rb')
-rw-r--r--db/migrate/20170913000752_create_site_uploads.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/db/migrate/20170913000752_create_site_uploads.rb b/db/migrate/20170913000752_create_site_uploads.rb
new file mode 100644
index 000000000..2246e48cd
--- /dev/null
+++ b/db/migrate/20170913000752_create_site_uploads.rb
@@ -0,0 +1,10 @@
+class CreateSiteUploads < ActiveRecord::Migration[5.1]
+  def change
+    create_table :site_uploads do |t|
+      t.string :var, default: '', null: false, index: { unique: true }
+      t.attachment :file
+      t.json :meta
+      t.timestamps
+    end
+  end
+end