Sha256: 338b00182721a5dd134fcf81ead63416f50183551149af74ed619480a16fd7d9
Contents?: true
Size: 343 Bytes
Versions: 22
Compression:
Stored size: 343 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
22 entries across 22 versions & 1 rubygems