Much base work started
This commit is contained in:
17
db/migrate/20251029113808_create_works.rb
Normal file
17
db/migrate/20251029113808_create_works.rb
Normal file
@@ -0,0 +1,17 @@
|
||||
class CreateWorks < ActiveRecord::Migration[8.1]
|
||||
def change
|
||||
create_table :works do |t|
|
||||
t.string :title
|
||||
t.integer :year
|
||||
t.string :director
|
||||
t.text :description
|
||||
t.decimal :rating
|
||||
t.boolean :organized
|
||||
t.string :poster_path
|
||||
t.string :backdrop_path
|
||||
t.text :metadata
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user