SU2-30 | добавлена фикс таблица для кодов, убрана таблица DocumentTypes, изменена структура jsonb
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
class CreateReportCodes < ActiveRecord::Migration[7.1]
|
||||
def change
|
||||
create_table :report_codes do |t|
|
||||
t.string :code, null: false
|
||||
t.string :name, null: false
|
||||
t.text :description, null: false, default: ''
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
|
||||
add_index :report_codes, :code, unique: true
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user