add mysql support

This commit is contained in:
Alex Turchyn
2023-07-04 20:23:22 +03:00
parent 22ea777c86
commit 70211b24c5
6 changed files with 11 additions and 7 deletions
@@ -5,9 +5,9 @@ class CreateTemplates < ActiveRecord::Migration[7.0]
create_table :templates do |t|
t.string :slug, null: false, index: { unique: true }
t.string :name, null: false
t.string :schema, null: false
t.string :fields, null: false
t.string :submitters, null: false
t.text :schema, null: false
t.text :fields, null: false
t.text :submitters, null: false
t.references :author, null: false, foreign_key: { to_table: :users }, index: true
t.references :account, null: false, foreign_key: true, index: true
@@ -8,7 +8,7 @@ class CreateSubmitters < ActiveRecord::Migration[7.0]
t.string :uuid, null: false
t.string :email, null: false, index: true
t.string :slug, null: false, index: { unique: true }
t.string :values, null: false
t.text :values, null: false
t.string :ua
t.string :ip