mirror of
https://github.com/discourse/discourse.git
synced 2024-12-26 06:03:44 +08:00
18 lines
602 B
Ruby
18 lines
602 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
class CreateMovedPosts < ActiveRecord::Migration[7.1]
|
||
|
def change
|
||
|
create_table :moved_posts do |t|
|
||
|
t.bigint :old_topic_id, null: false, index: true
|
||
|
t.bigint :old_post_id, null: false, index: true
|
||
|
t.bigint :old_post_number, null: false, index: true
|
||
|
t.bigint :new_topic_id, null: false, index: true
|
||
|
t.string :new_topic_title, null: false
|
||
|
t.bigint :new_post_id, null: false, index: true
|
||
|
t.bigint :new_post_number, null: false
|
||
|
t.boolean :created_new_topic, null: false, default: false
|
||
|
t.timestamps
|
||
|
end
|
||
|
end
|
||
|
end
|