Files
adamantium/config/db/migrate/20240405092210_create_highlights.rb
2024-08-05 19:00:09 +10:00

14 lines
246 B
Ruby

# frozen_string_literal: true
ROM::SQL.migration do
change do
create_table :highlights do
primary_key :id
foreign_key :post_id, :posts, null: false
column :text, :text, null: false
index :post_id
end
end
end