2021-03-22 03:16:29 +01:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2021-03-19 17:31:38 +02:00
|
|
|
class CreateAuthorsBooks < ActiveRecord::Migration[6.1]
|
|
|
|
def change
|
|
|
|
create_table :authors_books do |t|
|
|
|
|
t.belongs_to :book
|
|
|
|
t.belongs_to :author
|
|
|
|
|
|
|
|
t.timestamps
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|