Sha256: de6f56490600671646de8761bbfd9b0e753d75786bba465810ce6eacb52f77ea

Contents?: true

Size: 444 Bytes

Versions: 20

Compression:

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

20 entries across 20 versions & 1 rubygems

Version Path
pg_search-0.7.6 lib/pg_search/migration/templates/create_pg_search_documents.rb.erb
pg_search-0.7.5 lib/pg_search/migration/templates/create_pg_search_documents.rb.erb
pg_search-0.7.4 lib/pg_search/migration/templates/create_pg_search_documents.rb
pg_search-0.7.3 lib/pg_search/migration/templates/create_pg_search_documents.rb
pg_search-0.7.2 lib/pg_search/migration/templates/create_pg_search_documents.rb
pg_search-0.7.1 lib/pg_search/migration/templates/create_pg_search_documents.rb
pg_search-0.7.0 lib/pg_search/migration/templates/create_pg_search_documents.rb
pg_search-0.6.4 lib/pg_search/migration/templates/create_pg_search_documents.rb
pg_search-0.6.3 lib/pg_search/migration/templates/create_pg_search_documents.rb
pg_search-0.6.2 lib/pg_search/migration/templates/create_pg_search_documents.rb
pg_search-0.6.1 lib/pg_search/migration/templates/create_pg_search_documents.rb
pg_search-0.6.0 lib/pg_search/migration/templates/create_pg_search_documents.rb
pg_search-0.5.7 lib/pg_search/migration/templates/create_pg_search_documents.rb
pg_search-0.5.6 lib/pg_search/migration/templates/create_pg_search_documents.rb
pg_search-0.5.5 lib/pg_search/migration/templates/create_pg_search_documents.rb
pg_search-0.5.4 lib/pg_search/migration/templates/create_pg_search_documents.rb
pg_search-0.5.3 lib/pg_search/migration/templates/create_pg_search_documents.rb
pg_search-0.5.2 lib/pg_search/migration/templates/create_pg_search_documents.rb
pg_search-0.5.1 lib/pg_search/migration/templates/create_pg_search_documents.rb
pg_search-0.5 lib/pg_search/migration/templates/create_pg_search_documents.rb