Files
old-roraccounting/db/migrate/20190620200006_create_money_moves.rb
2019-06-20 22:47:39 +02:00

12 lines
303 B
Ruby

class CreateMoneyMoves < ActiveRecord::Migration[5.2]
def change
create_table :money_moves do |t|
t.text :description
t.decimal :amount, precision: 12, scale: 3
t.integer :from_homie_id, null: false
t.integer :to_homie_id, null: false
t.timestamps
end
end
end