Sha256: a0a0612d969b426e26e7a1f034db3be40eb21d675c4d420356f6070d4019e442

Contents?: true

Size: 456 Bytes

Versions: 3

Compression:

Stored size: 456 Bytes

Contents

class CreatePgSearchDocuments < ActiveRecord::Migration
  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
        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

3 entries across 3 versions & 1 rubygems

Version Path
pg_search-0.7.9 lib/pg_search/migration/templates/create_pg_search_documents.rb.erb
pg_search-0.7.8 lib/pg_search/migration/templates/create_pg_search_documents.rb.erb
pg_search-0.7.7 lib/pg_search/migration/templates/create_pg_search_documents.rb.erb