class CreateEducodeSalesInvoices < ActiveRecord::Migration[5.2] def change create_table :educode_sales_invoices do |t| t.string :number, comment: "发票号码" t.float :no_tax_amount, comment: "未税金额" t.float :taxt_amount, comment: "税额" t.float :amount, comment: "发票金额" t.date :date_at, comment: "开票日期" t.references :invoice_apply t.timestamps end end end