14 lines
363 B
Ruby
14 lines
363 B
Ruby
class CreatePComptaElements < ActiveRecord::Migration[6.0]
|
|
def change
|
|
create_table :p_compta_elements do |t|
|
|
t.string :element_type
|
|
t.integer :element_id
|
|
t.references :p_customer, index: true, foreign_key: true
|
|
t.datetime :date
|
|
t.decimal :amount, :precision => 13, :scale => 2
|
|
|
|
t.timestamps null: false
|
|
end
|
|
end
|
|
end
|