here come the tags
This commit is contained in:
parent
c8732b6332
commit
29368bfdb9
16 changed files with 155 additions and 2 deletions
9
db/migrate/20250910022523_create_tags.rb
Normal file
9
db/migrate/20250910022523_create_tags.rb
Normal 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
|
||||
10
db/migrate/20250910022600_create_tag_to_clips.rb
Normal file
10
db/migrate/20250910022600_create_tag_to_clips.rb
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue