discourse/db/migrate/20230202173641_create_form_templates.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
338 B
Ruby
Raw Normal View History

2023-02-09 03:21:39 +08:00
# 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