mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-11-29 10:24:20 +01:00
7868f31a58
for: machines, spaces, trainings, events
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
|