Sha256: 83d0993c8b93fb91c63978479ea800e2df71caf5c9ff705fcc1d21d078a9e006

Contents?: true

Size: 337 Bytes

Versions: 4

Compression:

Stored size: 337 Bytes

Contents

# frozen_string_literal: true
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 null: false
    end

    add_index :searches, :user_id
  end

  def self.down
    drop_table :searches
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
blacklight-6.1.0 db/migrate/20140202020201_create_searches.rb
blacklight-6.0.2 db/migrate/20140202020201_create_searches.rb
blacklight-6.0.1 db/migrate/20140202020201_create_searches.rb
blacklight-6.0.0 db/migrate/20140202020201_create_searches.rb