@ -19,5 +19,8 @@ Sequel.migration do
entity_id = DB[:entities].insert(created_at:, modified_at:)
DB[:pinboard].insert(entity_id:, json: , created_at:, modified_at:)
end
# Remove duplicate entry
DB[:pinboard].where(id: 5001).delete
@ -10,6 +10,7 @@ Sequel.migration do
create_table(:entities_tags) do
primary_key :id
foreign_key :entity_id, :entities, null: false
foreign_key :tag_id, :tags, null: false