hello-learning/bookstore/db/migrate/20191009174052_create_books.rb
2019-10-10 10:15:45 -05:00

11 lines
230 B
Ruby

class CreateBooks < ActiveRecord::Migration[6.0]
def change
create_table :books do |t|
t.string :title
t.string :author
t.integer :price_cents
t.timestamps
t.integer :quantity
end
end
end