mirror of
https://github.com/internetee/registry.git
synced 2025-07-22 18:56:05 +02:00
Merge branch 'master' into registry-787
# Conflicts: # db/structure.sql
This commit is contained in:
commit
96e2136c38
92 changed files with 860 additions and 271 deletions
5
db/migrate/20180228055259_add_registrars_vat_rate.rb
Normal file
5
db/migrate/20180228055259_add_registrars_vat_rate.rb
Normal file
|
@ -0,0 +1,5 @@
|
|||
class AddRegistrarsVatRate < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :registrars, :vat_rate, :decimal, precision: 4, scale: 3
|
||||
end
|
||||
end
|
|
@ -0,0 +1,5 @@
|
|||
class RenameInvoicesVatPrcToVatRate < ActiveRecord::Migration
|
||||
def change
|
||||
rename_column :invoices, :vat_prc, :vat_rate
|
||||
end
|
||||
end
|
|
@ -0,0 +1,5 @@
|
|||
class ChangeInvoicesVatRateType < ActiveRecord::Migration
|
||||
def change
|
||||
change_column :invoices, :vat_rate, :decimal, precision: 4, scale: 3
|
||||
end
|
||||
end
|
|
@ -0,0 +1,5 @@
|
|||
class ChangeInvoiceVatRateToNull < ActiveRecord::Migration
|
||||
def change
|
||||
change_column_null :invoices, :vat_rate, true
|
||||
end
|
||||
end
|
5
db/migrate/20180228074442_remove_registrars_vat.rb
Normal file
5
db/migrate/20180228074442_remove_registrars_vat.rb
Normal file
|
@ -0,0 +1,5 @@
|
|||
class RemoveRegistrarsVat < ActiveRecord::Migration
|
||||
def change
|
||||
remove_column :registrars, :vat, :boolean
|
||||
end
|
||||
end
|
|
@ -0,0 +1,5 @@
|
|||
class RemoveInvoicesInvoiceType < ActiveRecord::Migration
|
||||
def change
|
||||
remove_column :invoices, :invoice_type, :string
|
||||
end
|
||||
end
|
|
@ -0,0 +1,5 @@
|
|||
class RenameInvoicesSumCacheToTotal < ActiveRecord::Migration
|
||||
def change
|
||||
rename_column :invoices, :sum_cache, :total
|
||||
end
|
||||
end
|
|
@ -0,0 +1,5 @@
|
|||
class ChangeInvoicesTotalToNotNull < ActiveRecord::Migration
|
||||
def change
|
||||
change_column_null :invoices, :total, false
|
||||
end
|
||||
end
|
5
db/migrate/20180314122722_add_invoices_buyer_vat_no.rb
Normal file
5
db/migrate/20180314122722_add_invoices_buyer_vat_no.rb
Normal file
|
@ -0,0 +1,5 @@
|
|||
class AddInvoicesBuyerVatNo < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :invoices, :buyer_vat_no, :string
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue