Files
adamantium/db/migrate/20240405092210_create_highlights.rb
2024-04-05 21:35:39 +11: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