db/migrate/20140202020202_create_bookmarks.rb in blacklight-6.1.0 vs db/migrate/20140202020202_create_bookmarks.rb in blacklight-6.2.0
- old
+ new
@@ -1,11 +1,12 @@
# frozen_string_literal: true
class CreateBookmarks < ActiveRecord::Migration
def self.up
create_table :bookmarks do |t|
- t.integer :user_id, :null=>false
+ t.integer :user_id, index: true, null: false
t.string :user_type
- t.string :document_id
+ t.string :document_id, index: true
+ t.string :document_type
t.string :title
t.timestamps null: false
end
end