mirror of
https://github.com/neocities/neocities.git
synced 2025-04-25 01:32:36 +02:00
19 lines
No EOL
419 B
Ruby
19 lines
No EOL
419 B
Ruby
Sequel.migration do
|
|
up {
|
|
DB.rename_column :events, :comment_id, :profile_comment_id
|
|
|
|
DB.create_table! :profile_comments do
|
|
primary_key :id
|
|
Integer :site_id
|
|
Integer :actioning_site_id
|
|
Text :message
|
|
DateTime :created_at
|
|
DateTime :updated_at
|
|
end
|
|
}
|
|
|
|
down {
|
|
DB.rename_column :events, :profile_comment_id, :comment_id
|
|
DB.drop_table :profile_comments
|
|
}
|
|
end |