# This migration comes from blacklight (originally 20140202020201) # -*- encoding : utf-8 -*- class CreateSearches < ActiveRecord::Migration def self.up create_table :searches do |t| t.text :query_params t.integer :user_id t.string :user_type t.timestamps end add_index :searches, :user_id end def self.down drop_table :searches end end