Commit database changes as well

main
Simon Quigley 1 year ago
parent f9a7010911
commit 76b2738b01

@ -0,0 +1,5 @@
class AddAdminToUsers < ActiveRecord::Migration[7.0]
def change
add_column :users, :admin, :boolean, default: false
end
end

@ -0,0 +1,4 @@
class MakeReviewsAJoinTable < ActiveRecord::Migration[7.0]
def change
end
end

3
db/schema.rb generated

@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema[7.0].define(version: 2023_09_26_182250) do
ActiveRecord::Schema[7.0].define(version: 2023_09_27_121300) do
create_table "movies", force: :cascade do |t|
t.string "title"
t.string "rating"
@ -40,6 +40,7 @@ ActiveRecord::Schema[7.0].define(version: 2023_09_26_182250) do
t.string "password_digest"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.boolean "admin", default: false
end
add_foreign_key "reviews", "movies"

Loading…
Cancel
Save