Sha256: a366acb6c9f21e341dcdb1086e297f3ea5a5a16472775613688c4324d15e6455
Contents?: true
Size: 513 Bytes
Versions: 4
Compression:
Stored size: 513 Bytes
Contents
# Creates db table for units of measure. class CreateOkeiUnits < ActiveRecord::Migration def change create_table :okei_units do |t| t.string :name, null: false t.string :code, null: false t.string :num, limit: 3 t.string :int_code, limit: 4 t.string :base, null: false t.string :measure, null: false t.float :factor, null: false end add_index :okei_units, :code, unique: true add_index :okei_units, :base add_index :okei_units, :measure end end
Version data entries
4 entries across 4 versions & 1 rubygems