12 lines
229 B
Ruby
12 lines
229 B
Ruby
# frozen_string_literal: true
|
|
|
|
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
|