about summary refs log tree commit diff
path: root/db
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2020-06-05 23:10:41 +0200
committerGitHub <noreply@github.com>2020-06-05 23:10:41 +0200
commit346d9b3d2eb2021b89333f1c54e8876d9a16ee24 (patch)
tree99d07943b4f2a2290b591be28f59fa4bb9fb1a1f /db
parenta415f44fd178c14bacae2812c68e6779772d06e8 (diff)
Add blurhash to preview cards (#13984)
Fixes #13001
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20200605155027_add_blurhash_to_preview_cards.rb5
-rw-r--r--db/schema.rb4
2 files changed, 7 insertions, 2 deletions
diff --git a/db/migrate/20200605155027_add_blurhash_to_preview_cards.rb b/db/migrate/20200605155027_add_blurhash_to_preview_cards.rb
new file mode 100644
index 000000000..dc4b7a984
--- /dev/null
+++ b/db/migrate/20200605155027_add_blurhash_to_preview_cards.rb
@@ -0,0 +1,5 @@
+class AddBlurhashToPreviewCards < ActiveRecord::Migration[5.2]
+  def change
+    add_column :preview_cards, :blurhash, :string
+  end
+end
diff --git a/db/schema.rb b/db/schema.rb
index e220e13fe..beda93c01 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -10,8 +10,7 @@
 #
 # It's strongly recommended that you check this file into your version control system.
 
-ActiveRecord::Schema.define(version: 2020_06_01_222558) do
-
+ActiveRecord::Schema.define(version: 2020_06_05_155027) do
   # These are extensions that must be enabled in order to support this database
   enable_extension "plpgsql"
 
@@ -648,6 +647,7 @@ ActiveRecord::Schema.define(version: 2020_06_01_222558) do
     t.datetime "updated_at", null: false
     t.string "embed_url", default: "", null: false
     t.integer "image_storage_schema_version"
+    t.string "blurhash"
     t.index ["url"], name: "index_preview_cards_on_url", unique: true
   end