class CreateBookGenres < ActiveRecord::Migration
  def change
    create_table :book_genres do |t|
      t.references :book, index: true, foreign_key: true
      t.references :book_genre_type, index: true, foreign_key: true

      t.timestamps null: false
    end
  end
end
