sources and notes

main
Alpha Chen 1 year ago
parent a1927c15db
commit 04d3000a79
Signed by: alpha
SSH Key Fingerprint: SHA256:3fOT8fiYQG/aK9ntivV3Bqtg8AYQ7q4nV6ZgihOA20g

@ -0,0 +1,22 @@
Sequel.migration do
change do
create_table(:sources) do
foreign_key :entity_id, :entities
foreign_key :source_id, :entities
DateTime :created_at, null: false
DateTime :modified_at, null: false
unique %i[entity_id source_id]
end
create_table(:notes) do
foreign_key :entity_id, :entities
String :text, text: true
DateTime :created_at, null: false
DateTime :modified_at, null: false
end
end
end
Loading…
Cancel
Save