Sha256: aabf54a5adcc995ca382385df61f397ba8a18d80bb0615d81d34bbc51264aea7
Contents?: true
Size: 490 Bytes
Versions: 7
Compression:
Stored size: 490 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
7 entries across 7 versions & 1 rubygems