Sha256: b620813be034c0dead2840e4e52f6e1e7f358e6a909dcfc293bfeb4e3199a21f
Contents?: true
Size: 1.22 KB
Versions: 25
Compression:
Stored size: 1.22 KB
Contents
class CreateUnidomPrices < ActiveRecord::Migration def change create_table :unidom_prices, id: :uuid do |t| t.references :priced, type: :uuid, null: false, polymorphic: { null: false, default: '', limit: 200 } t.references :pricer, type: :uuid, null: false, polymorphic: { null: false, default: '', limit: 200 } t.column :calculation_code, 'char(4)', null: false, default: 'AMNT' t.column :pricing_code, 'char(4)', null: false, default: 'BASE' t.column :charging_code, 'char(4)', null: false, default: 'ONCE' t.column :currency_code, 'char(3)', null: false, default: 'RMB' t.decimal :amount, null: false, default: 0.0, precision: 12, scale: 2 t.text :description t.text :instruction t.column :state, 'char(1)', null: false, default: 'C' t.datetime :opened_at, null: false, default: ::Time.utc(1970) t.datetime :closed_at, null: false, default: ::Time.utc(3000) t.boolean :defunct, null: false, default: false t.jsonb :notation, null: false, default: {} t.timestamps null: false end add_index :unidom_prices, :priced_id add_index :unidom_prices, :pricer_id end end
Version data entries
25 entries across 25 versions & 1 rubygems