mirror of
https://github.com/discourse/discourse.git
synced 2024-12-25 02:03:45 +08:00
15 lines
338 B
Ruby
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
|