mirror of
https://github.com/internetee/registry.git
synced 2025-08-06 01:35:10 +02:00
Add invoice numbers
This commit is contained in:
parent
109ce6c912
commit
1e47f3e41c
10 changed files with 35 additions and 14 deletions
6
db/migrate/20150423083308_add_number_to_invoices.rb
Normal file
6
db/migrate/20150423083308_add_number_to_invoices.rb
Normal file
|
@ -0,0 +1,6 @@
|
|||
class AddNumberToInvoices < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :invoices, :number, :integer
|
||||
Invoice.all.each(&:save)
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue