Sha256: 91405732eb3539be030b1d029bbc0df3b7a7e74a046bae53b5348c94fcd81848

Contents?: true

Size: 472 Bytes

Versions: 12

Compression:

Stored size: 472 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, :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

12 entries across 12 versions & 2 rubygems

Version Path
pg_search-2.0.1 lib/pg_search/migration/templates/create_pg_search_documents.rb.erb
pg_search-2.0.0 lib/pg_search/migration/templates/create_pg_search_documents.rb.erb
pg_search-1.0.6 lib/pg_search/migration/templates/create_pg_search_documents.rb.erb
pshq_engine-0.1.6 db/migrate/20150505152604_create_pg_search_documents.rb
pshq_engine-0.1.5 db/migrate/20150505152604_create_pg_search_documents.rb
pshq_engine-0.0.1 db/migrate/20150505152604_create_pg_search_documents.rb
pg_search-1.0.5 lib/pg_search/migration/templates/create_pg_search_documents.rb.erb
pg_search-1.0.4 lib/pg_search/migration/templates/create_pg_search_documents.rb.erb
pg_search-1.0.3 lib/pg_search/migration/templates/create_pg_search_documents.rb.erb
pg_search-1.0.2 lib/pg_search/migration/templates/create_pg_search_documents.rb.erb
pg_search-1.0.1 lib/pg_search/migration/templates/create_pg_search_documents.rb.erb
pg_search-1.0.0 lib/pg_search/migration/templates/create_pg_search_documents.rb.erb