mirror of
https://github.com/internetee/registry.git
synced 2025-08-03 08:22:05 +02:00
Invoice filtering in registrar
This commit is contained in:
parent
1f2f483e34
commit
23098add74
13 changed files with 83 additions and 7 deletions
6
db/migrate/20150428075052_add_sum_cache_to_invoice.rb
Normal file
6
db/migrate/20150428075052_add_sum_cache_to_invoice.rb
Normal file
|
@ -0,0 +1,6 @@
|
|||
class AddSumCacheToInvoice < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :invoices, :sum_cache, :decimal
|
||||
Invoice.all.each(&:save)
|
||||
end
|
||||
end
|
|
@ -11,7 +11,7 @@
|
|||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 20150427073517) do
|
||||
ActiveRecord::Schema.define(version: 20150428075052) do
|
||||
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "plpgsql"
|
||||
|
@ -368,6 +368,7 @@ ActiveRecord::Schema.define(version: 20150427073517) do
|
|||
t.string "updator_str"
|
||||
t.integer "number"
|
||||
t.datetime "cancelled_at"
|
||||
t.decimal "sum_cache"
|
||||
end
|
||||
|
||||
add_index "invoices", ["buyer_id"], name: "index_invoices_on_buyer_id", using: :btree
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue