class CreateEducodeSalesInvoiceApplies < ActiveRecord::Migration[5.2] def change create_table :educode_sales_invoice_applies do |t| t.string :number, comment: "开票申请编号" t.references :business t.references :staff t.float :amount, comment: "已开票金额" t.integer :invoices_count, comment: "发票数量" t.integer :delivery, comment: "送达方式" t.date :ticket_at, comment: "出票需求时间" t.date :passed_at, comment: "开票时间" t.integer :state, comment: "开票状态" t.integer :category, comment: "发票类型" t.boolean :is_tax_rebate, default: false t.string :name, comment: "开票信息名称" t.string :taxpaper_number, comment: "纳税人标识号" t.string :address, comment: "地址" t.string :phone, comment: "电话" t.string :bank_number, comment: "银行账号" t.string :bank, comment: "开户行" t.integer :take_ticket_id, comment: "领票人" t.timestamps end end end