mirror of
https://github.com/internetee/registry.git
synced 2025-08-05 09:21:43 +02:00
Allow only letters and underscores in Setting code
This commit is contained in:
parent
c977872c44
commit
abea8abe84
4 changed files with 101 additions and 2 deletions
|
@ -2,7 +2,7 @@ class CreateSettingEntries < ActiveRecord::Migration[6.0]
|
|||
def change
|
||||
create_table :setting_entries do |t|
|
||||
t.string :code, null: false, index: { unique: true }
|
||||
t.string :value, null: false, default: ''
|
||||
t.string :value
|
||||
t.string :group, null: false
|
||||
t.string :format, null: false
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue