mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-03-25 01:14:43 +00:00
Added a finished_at column on matches, created a callback to updated that only if finished changes and is 1, and display that on the match stats page.
This commit is contained in:
9
db/migrate/20250122142911_add_finished_at_to_matches.rb
Normal file
9
db/migrate/20250122142911_add_finished_at_to_matches.rb
Normal file
@@ -0,0 +1,9 @@
|
||||
class AddFinishedAtToMatches < ActiveRecord::Migration[7.0]
|
||||
def up
|
||||
add_column :matches, :finished_at, :datetime
|
||||
end
|
||||
|
||||
def down
|
||||
remove_column :matches, :finished_at
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user