Completed
Push — master ( 683061...c652b8 )
by Steven
04:24
created

CreatePgSearchDocuments.change()   A

Complexity

Conditions 1

Size

Total Lines 9

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
dl 0
loc 9
rs 9.6666
c 1
b 0
f 0
1
# frozen_string_literal: true
2
3
# Table to hold pg_search multi_search models
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