Transform currency support #14

Merged
bilal.catic merged 5 commits from transform-currency-support into master 2020-09-20 18:03:55 +02:00
3 changed files with 6 additions and 3 deletions
Showing only changes of commit a8b836b03f - Show all commits

View File

@@ -45,8 +45,7 @@ class HomiesController < ApplicationController
params.require(:homie).permit(
:name,
:importance,
:about,
:chip_id
:about
)
end
end

View File

@@ -1,7 +1,6 @@
class Homie < ApplicationRecord
has_many :money_moves
has_many :work
belongs_to :chip
def self.cash(importance)
totals = Homie.all.joins(:money_moves).group(:id).order(:id).sum(:amount)

View File

@@ -0,0 +1,5 @@
class RemoveDefaultChipFromHomies < ActiveRecord::Migration[5.2]
def change
remove_reference :homies, :chip
end
end