Add editable pages
This commit is contained in:
15
db/migrate/20231117222529_create_pages.rb
Normal file
15
db/migrate/20231117222529_create_pages.rb
Normal file
@@ -0,0 +1,15 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
ROM::SQL.migration do
|
||||
change do
|
||||
create_table :pages do
|
||||
primary_key :id
|
||||
column :name, :text, null: false
|
||||
column :content, :text, null: false
|
||||
column :slug, :text, null: false
|
||||
column :published_at, :date
|
||||
|
||||
index :slug, unique: true
|
||||
end
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user