Track creator

This commit is contained in:
Jason Zimdars
2024-08-14 16:41:59 -05:00
parent 8b23dfe52f
commit 2ff9dbab51
6 changed files with 14 additions and 2 deletions
@@ -0,0 +1,5 @@
class AddCreatorToSplats < ActiveRecord::Migration[8.0]
def change
add_column :splats, :creator_id, :integer, null: false
end
end
Generated
+2 -1
View File
@@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema[8.0].define(version: 2024_07_24_163519) do
ActiveRecord::Schema[8.0].define(version: 2024_08_14_210043) do
create_table "categories", force: :cascade do |t|
t.string "title"
t.datetime "created_at", null: false
@@ -51,6 +51,7 @@ ActiveRecord::Schema[8.0].define(version: 2024_07_24_163519) do
t.string "color"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.integer "creator_id", null: false
end
create_table "users", force: :cascade do |t|