discourse/db/migrate/20230202173641_create_form_...

15 lines
338 B
Ruby

# frozen_string_literal: true
class CreateFormTemplates < ActiveRecord::Migration[7.0]
def change
create_table :form_templates do |t|
t.string :name, null: false, limit: 100
t.text :template, null: false, limit: 2000
t.timestamps null: false
end
add_index :form_templates, :name, unique: true
end
end