14 lines
246 B
Ruby
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
|