Sha256: a248085ed8ab5c2d82a7327ac5226d0576da545dd352c37bad52c91e4b6ab771

Contents?: true

Size: 340 Bytes

Versions: 26

Compression:

Stored size: 340 Bytes

Contents

# frozen_string_literal: true

class AddPolymorphicTypeToBookmarks < ActiveRecord::Migration[4.2]
  def change
    add_column(:bookmarks, :document_type, :string) unless Bookmark.connection.column_exists? :bookmarks, :document_type

    add_index :bookmarks, :user_id unless Bookmark.connection.index_exists? :bookmarks, :user_id
  end
end

Version data entries

26 entries across 26 versions & 2 rubygems

Version Path
blacklight-8.0.0.beta6 db/migrate/20140320000000_add_polymorphic_type_to_bookmarks.rb
blacklight-8.0.0.beta5 db/migrate/20140320000000_add_polymorphic_type_to_bookmarks.rb
blacklight-8.0.0.beta4 db/migrate/20140320000000_add_polymorphic_type_to_bookmarks.rb
blacklight-8.0.0.beta3 db/migrate/20140320000000_add_polymorphic_type_to_bookmarks.rb
blacklight-8.0.0.beta2 db/migrate/20140320000000_add_polymorphic_type_to_bookmarks.rb
blacklight-8.0.0.beta1 db/migrate/20140320000000_add_polymorphic_type_to_bookmarks.rb