2022-12-09 11:42:12 -05:00
|
|
|
Sequel.migration do
|
|
|
|
|
|
|
|
up do
|
|
|
|
create_table(:license_comments) do
|
|
|
|
primary_key :id
|
|
|
|
String :body, null: false
|
2022-12-09 21:19:53 -05:00
|
|
|
DateTime :created_at, default: Sequel::CURRENT_TIMESTAMP
|
|
|
|
DateTime :updated_at, default: Sequel::CURRENT_TIMESTAMP
|
2022-12-09 11:42:12 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
alter_table(:license_comments) do
|
2022-12-09 21:19:53 -05:00
|
|
|
add_foreign_key :license_id, :licenses
|
2022-12-09 11:42:12 -05:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
down do
|
|
|
|
drop_table(:license_comments)
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|