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