SU2-19 | Парсинг двух форм, пока без понимания того, что делать с расхожениями в данных (обе формы в одном файле)
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
class AddUniqueIndexToFinancialStatements < ActiveRecord::Migration[7.1]
|
||||
def change
|
||||
add_index :financial_statements,
|
||||
[:yearly_file_id, :document_type_id, :sheet_number],
|
||||
name: 'index_fs_on_yearly_file_doc_type_sheet',
|
||||
unique: true,
|
||||
if_not_exists: true
|
||||
end
|
||||
end
|
||||
Generated
+2
-1
@@ -10,7 +10,7 @@
|
||||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema[7.1].define(version: 2026_03_12_000005) do
|
||||
ActiveRecord::Schema[7.1].define(version: 2026_03_21_000006) do
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "plpgsql"
|
||||
|
||||
@@ -65,6 +65,7 @@ ActiveRecord::Schema[7.1].define(version: 2026_03_12_000005) do
|
||||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
t.index ["document_type_id"], name: "index_financial_statements_on_document_type_id"
|
||||
t.index ["yearly_file_id", "document_type_id", "sheet_number"], name: "index_fs_on_yearly_file_doc_type_sheet", unique: true
|
||||
t.index ["yearly_file_id"], name: "index_financial_statements_on_yearly_file_id"
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user