| Total Complexity | 1 |
| Total Lines | 11 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | # frozen_string_literal: true |
||
| 4 | class CreatePgSearchDocuments < ActiveRecord::Migration[5.1] |
||
| 5 | def change |
||
| 6 | say_with_time('pg_search multisearch') do |
||
| 7 | create_table :pg_search_documents do |t| |
||
| 8 | t.text :content |
||
| 9 | t.belongs_to :searchable, polymorphic: true, index: true |
||
| 10 | t.timestamps null: false |
||
| 11 | end |
||
| 12 | end |
||
| 13 | end |
||
| 14 | end |
||
| 15 |