0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-06 12:53:30 +08:00
discourse/plugins/discourse-policy/db/migrate/20190817010101_migrate_post_policy_table.rb
2025-07-22 15:07:59 +02:00

21 lines
490 B
Ruby
Vendored

# frozen_string_literal: true
class MigratePostPolicyTable < ActiveRecord::Migration[5.2]
def up
create_table(:post_policies) do |t|
t.bigint :post_id, null: false, unique: true
t.timestamp :renew_start
t.integer :renew_days
t.datetime :next_renew_at
t.string :reminder
t.datetime :last_reminded_at
t.string :version
t.integer :group_id, null: false
t.timestamps
end
end
def down
drop_table :post_policies
end
end