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

CreatePgSearchDocuments   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 11
rs 10
c 1
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A change() 0 9 1
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