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