Tapes are now Clips, also they have categories
This commit is contained in:
parent
86c489be72
commit
c8732b6332
41 changed files with 347 additions and 148 deletions
|
|
@ -1,9 +0,0 @@
|
|||
class CreateTapes < ActiveRecord::Migration[8.0]
|
||||
def change
|
||||
create_table :tapes do |t|
|
||||
t.string :title
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
11
db/migrate/20250908185632_create_clips.rb
Normal file
11
db/migrate/20250908185632_create_clips.rb
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
class CreateClips < ActiveRecord::Migration[8.0]
|
||||
def change
|
||||
create_table :clips do |t|
|
||||
t.string :title
|
||||
|
||||
t.belongs_to :category, foreign_key: true
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
9
db/migrate/20250909013509_create_categories.rb
Normal file
9
db/migrate/20250909013509_create_categories.rb
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
class CreateCategories < ActiveRecord::Migration[8.0]
|
||||
def change
|
||||
create_table :categories do |t|
|
||||
t.string :name
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue