|
10 | 10 | #
|
11 | 11 | # It's strongly recommended that you check this file into your version control system.
|
12 | 12 |
|
13 |
| -ActiveRecord::Schema[7.2].define(version: 2024_10_03_013148) do |
| 13 | +ActiveRecord::Schema[7.2].define(version: 2024_10_09_064855) do |
14 | 14 | # These are extensions that must be enabled in order to support this database
|
15 | 15 | enable_extension "plpgsql"
|
16 | 16 |
|
|
89 | 89 | t.integer "vote_count", default: 0
|
90 | 90 | t.datetime "created_at", precision: nil, null: false
|
91 | 91 | t.datetime "updated_at", precision: nil, null: false
|
92 |
| - t.tsvector "tsv" |
| 92 | + t.virtual "tsv", type: :tsvector, as: "to_tsvector('english'::regconfig, (((((COALESCE(title, ''::character varying))::text || ' '::text) || (COALESCE(tagline, ''::character varying))::text) || ' '::text) || (COALESCE(overview, ''::character varying))::text))", stored: true |
93 | 93 | t.index ["release_date"], name: "index_movies_on_release_date"
|
94 | 94 | t.index ["title"], name: "index_movies_on_title"
|
95 | 95 | t.index ["tmdb_id"], name: "index_movies_on_tmdb_id"
|
|
138 | 138 | t.integer "vote_count", default: 0
|
139 | 139 | t.datetime "created_at", precision: nil, null: false
|
140 | 140 | t.datetime "updated_at", precision: nil, null: false
|
141 |
| - t.tsvector "tsv" |
| 141 | + t.virtual "tsv", type: :tsvector, as: "to_tsvector('english'::regconfig, (((COALESCE(name, ''::character varying))::text || ' '::text) || (COALESCE(overview, ''::character varying))::text))", stored: true |
142 | 142 | t.index ["name"], name: "index_tv_shows_on_name"
|
143 | 143 | t.index ["tmdb_id"], name: "index_tv_shows_on_tmdb_id"
|
144 | 144 | t.index ["tsv"], name: "index_tv_shows_on_tsv", using: :gin
|
|
0 commit comments