mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-01 12:24:28 +01:00
16 lines
466 B
Ruby
16 lines
466 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
# Advanced accouting parameters are stored in a dedicated table,
|
||
|
# with a polymorphic relation per object
|
||
|
class CreateAdvancedAccountings < ActiveRecord::Migration[5.2]
|
||
|
def change
|
||
|
create_table :advanced_accountings do |t|
|
||
|
t.string :code
|
||
|
t.string :analytical_section
|
||
|
t.references :accountable, polymorphic: true, index: { name: 'index_advanced_accountings_on_accountable' }
|
||
|
|
||
|
t.timestamps
|
||
|
end
|
||
|
end
|
||
|
end
|