Much base work started
This commit is contained in:
15
db/migrate/20251029113957_create_playback_sessions.rb
Normal file
15
db/migrate/20251029113957_create_playback_sessions.rb
Normal file
@@ -0,0 +1,15 @@
|
||||
class CreatePlaybackSessions < ActiveRecord::Migration[8.1]
|
||||
def change
|
||||
create_table :playback_sessions do |t|
|
||||
t.references :video, null: false, foreign_key: true
|
||||
t.references :user, null: false, foreign_key: true
|
||||
t.float :position
|
||||
t.float :duration_watched
|
||||
t.datetime :last_watched_at
|
||||
t.boolean :completed
|
||||
t.integer :play_count
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user