here come the tags

This commit is contained in:
Roscoe 2025-09-10 03:46:23 +01:00
commit 29368bfdb9
Signed by: RoscoeDaWah
SSH key fingerprint: SHA256:Hqn452XQ1ETzUt/FthJu6+OFkS4NBxCv5VQSEvuk7CE
16 changed files with 155 additions and 2 deletions

View file

@ -0,0 +1,9 @@
class CreateTags < ActiveRecord::Migration[8.0]
def change
create_table :tags do |t|
t.string :name
t.timestamps
end
end
end

View file

@ -0,0 +1,10 @@
class CreateTagToClips < ActiveRecord::Migration[8.0]
def change
create_table :tag_to_clips do |t|
t.references :clip, null: false, foreign_key: true
t.references :tag, null: false, foreign_key: true
t.timestamps
end
end
end