bookstore/db/migrate/20210322002803_create_books_users.rb
2021-03-22 03:16:29 +01:00

12 lines
223 B
Ruby

# frozen_string_literal: true
class CreateBooksUsers < ActiveRecord::Migration[6.1]
def change
create_table :books_users do |t|
t.belongs_to :book
t.belongs_to :user
t.timestamps
end
end
end