mirror of
https://github.com/internetee/registry.git
synced 2025-08-04 17:01:44 +02:00
ChangeInvoicesRequiredColumnsToNotNull
This commit is contained in:
parent
b177b3eab2
commit
98e662b003
3 changed files with 39 additions and 12 deletions
|
@ -0,0 +1,15 @@
|
|||
class ChangeInvoicesRequiredColumnsToNotNull < ActiveRecord::Migration
|
||||
def change
|
||||
change_column_null :invoices, :buyer_id, false
|
||||
change_column_null :invoices, :seller_reg_no, false
|
||||
change_column_null :invoices, :seller_bank, false
|
||||
change_column_null :invoices, :seller_swift, false
|
||||
change_column_null :invoices, :seller_country_code, false
|
||||
change_column_null :invoices, :seller_street, false
|
||||
change_column_null :invoices, :seller_city, false
|
||||
change_column_null :invoices, :buyer_reg_no, false
|
||||
change_column_null :invoices, :buyer_country_code, false
|
||||
change_column_null :invoices, :buyer_street, false
|
||||
change_column_null :invoices, :buyer_city, false
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue