mirror of
https://github.com/internetee/registry.git
synced 2025-07-23 03:06:14 +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
|
||||
|
||||
|
|
|
@ -2307,7 +2307,7 @@ CREATE TABLE public.schema_migrations (
|
|||
CREATE TABLE public.setting_entries (
|
||||
id bigint NOT NULL,
|
||||
code character varying NOT NULL,
|
||||
value character varying DEFAULT ''::character varying,
|
||||
value character varying,
|
||||
"group" character varying NOT NULL,
|
||||
format character varying NOT NULL,
|
||||
creator_str character varying,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue