Sha256: aabf54a5adcc995ca382385df61f397ba8a18d80bb0615d81d34bbc51264aea7

Contents?: true

Size: 490 Bytes

Versions: 7

Compression:

Stored size: 490 Bytes

Contents

class CreatePgSearchDocuments < ActiveRecord::Migration<%= migration_version %>
  def self.up
    say_with_time("Creating table for pg_search multisearch") do
      create_table :pg_search_documents do |t|
        t.text :content
        t.belongs_to :searchable, polymorphic: true, index: true
        t.timestamps null: false
      end
    end
  end

  def self.down
    say_with_time("Dropping table for pg_search multisearch") do
      drop_table :pg_search_documents
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
pg_search-2.3.2 lib/pg_search/migration/templates/create_pg_search_documents.rb.erb
pg_search-2.3.1 lib/pg_search/migration/templates/create_pg_search_documents.rb.erb
pg_search-2.3.0 lib/pg_search/migration/templates/create_pg_search_documents.rb.erb
pg_search-2.2.0 lib/pg_search/migration/templates/create_pg_search_documents.rb.erb
pg_search-2.1.7 lib/pg_search/migration/templates/create_pg_search_documents.rb.erb
pg_search-2.1.6 lib/pg_search/migration/templates/create_pg_search_documents.rb.erb
pg_search-2.1.5 lib/pg_search/migration/templates/create_pg_search_documents.rb.erb