about summary refs log tree commit diff
path: root/db/migrate/20190627222225_create_custom_emoji_categories.rb
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2019-06-28 21:36:50 +0200
committerThibaut Girka <thib@sitedethib.com>2019-06-28 21:36:50 +0200
commit3922b518f79cd3098db19c392d5d10084839c200 (patch)
treeedef2c9d647e420aff33024a267d1d96cd721795 /db/migrate/20190627222225_create_custom_emoji_categories.rb
parentf7c0e326ab11a597b17a22dd8889f0690d7ffd73 (diff)
parent4f5b221be21e62257c16e47e998cdf757991f871 (diff)
Merge branch 'master' into glitch-soc/merge-upstream
Diffstat (limited to 'db/migrate/20190627222225_create_custom_emoji_categories.rb')
-rw-r--r--db/migrate/20190627222225_create_custom_emoji_categories.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/db/migrate/20190627222225_create_custom_emoji_categories.rb b/db/migrate/20190627222225_create_custom_emoji_categories.rb
new file mode 100644
index 000000000..4713793e6
--- /dev/null
+++ b/db/migrate/20190627222225_create_custom_emoji_categories.rb
@@ -0,0 +1,9 @@
+class CreateCustomEmojiCategories < ActiveRecord::Migration[5.2]
+  def change
+    create_table :custom_emoji_categories do |t|
+      t.string :name, index: { unique: true }
+
+      t.timestamps
+    end
+  end
+end