Add movies page
This commit is contained in:
12
db/migrate/20230501111415_create_movies.rb
Normal file
12
db/migrate/20230501111415_create_movies.rb
Normal file
@@ -0,0 +1,12 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
ROM::SQL.migration do
|
||||
change do
|
||||
create_table :movies do
|
||||
primary_key :id
|
||||
column :title, :text, null: false
|
||||
column :year, :integer
|
||||
column :url, :text, null: false
|
||||
end
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user