Added new ItemComment model

This commit is contained in:
gballan committed 2022-12-08 01:32:41 -05:00
1 parent 11d33e394b
commit 12045c684e
6 files changed
+61 -1

No files matched your search

@@ -0,0 +1,20 @@
Sequel.migration do
up do
create_table(:item_comments) do
primary_key :id
String :body, null: false
DateTime :created_at
DateTime :updated_at
end
alter_table(:item_comments) do
add_foreign_key :item_id, :items
end
end
down do
drop_table(:item_comments)
end
end