13 lines
353 B
Ruby
13 lines
353 B
Ruby
class CreateFinancialStatements < ActiveRecord::Migration[7.1]
|
|
def change
|
|
create_table :financial_statements do |t|
|
|
t.references :yearly_file, null: false, foreign_key: true
|
|
t.references :document_type, null: false, foreign_key: true
|
|
t.integer :sheet_number
|
|
t.jsonb :data, default: {}
|
|
|
|
t.timestamps
|
|
end
|
|
end
|
|
end
|