# frozen_string_literal: true class CreateBookmarks < ActiveRecord::Migration def self.up create_table :bookmarks do |t| t.integer :user_id, index: true, null: false t.string :user_type t.string :document_id, index: true t.string :document_type t.binary :title t.timestamps null: false end end def self.down drop_table :bookmarks end end