Sha256: e9334e856574cd77b8599b40e23a284917bcc1c7046f10caaecdd85c797a9249

Contents?: true

Size: 496 Bytes

Versions: 5

Compression:

Stored size: 496 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

5 entries across 5 versions & 1 rubygems

Version Path
pg_search-2.1.4 lib/pg_search/migration/templates/create_pg_search_documents.rb.erb
pg_search-2.1.3 lib/pg_search/migration/templates/create_pg_search_documents.rb.erb
pg_search-2.1.2 lib/pg_search/migration/templates/create_pg_search_documents.rb.erb
pg_search-2.1.1 lib/pg_search/migration/templates/create_pg_search_documents.rb.erb
pg_search-2.1.0 lib/pg_search/migration/templates/create_pg_search_documents.rb.erb