Commit database changes as well

This commit is contained in:
Simon Quigley 2023-09-27 07:22:11 -05:00
parent f9a7010911
commit 76b2738b01
3 changed files with 11 additions and 1 deletions

View File

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

View File

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

3
db/schema.rb generated
View File

@ -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"