20181213185244_create_invoice_details.rb 543 B

1234567891011121314151617
  1. class CreateInvoiceDetails < ActiveRecord::Migration
  2. def change
  3. drop_table :invoice_details if table_exists? :invoice_details
  4. create_table :invoice_details do |t|
  5. t.belongs_to :sale, index: true
  6. t.string :uuid, null: false
  7. t.string :cfdi_type, limit: 1, null: false
  8. t.string :invoice_reason
  9. t.string :rfc_receptor
  10. t.datetime :generating_date
  11. t.datetime :stamping_date
  12. t.string :storing_url
  13. t.integer :status, limit: 1, default: 1
  14. t.timestamps null: false
  15. end
  16. end
  17. end