about summary refs log tree commit diff
path: root/db/migrate
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2019-06-28 22:35:54 +0200
committerGitHub <noreply@github.com>2019-06-28 22:35:54 +0200
commit98c2d2aa46c2725b360907cf5537338ac6d052ed (patch)
tree4b3301453fc3f8bcfe412a5e1bb967ec5c3414c6 /db/migrate
parentf7c0e326ab11a597b17a22dd8889f0690d7ffd73 (diff)
parent662252c8f77e8dd8fd015bc6ece0943f068b1710 (diff)
Merge pull request #1146 from ThibG/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20190627222225_create_custom_emoji_categories.rb9
-rw-r--r--db/migrate/20190627222826_add_category_id_to_custom_emojis.rb5
2 files changed, 14 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
diff --git a/db/migrate/20190627222826_add_category_id_to_custom_emojis.rb b/db/migrate/20190627222826_add_category_id_to_custom_emojis.rb
new file mode 100644
index 000000000..873b4d05f
--- /dev/null
+++ b/db/migrate/20190627222826_add_category_id_to_custom_emojis.rb
@@ -0,0 +1,5 @@
+class AddCategoryIdToCustomEmojis < ActiveRecord::Migration[5.2]
+  def change
+    add_column :custom_emojis, :category_id, :bigint
+  end
+end