20161026064026_create_units.rb 251 B

1234567891011121314
  1. class CreateUnits < ActiveRecord::Migration[5.0]
  2. def change
  3. create_table :units do |t|
  4. t.string :code
  5. t.string :name
  6. t.string :fullname
  7. t.string :shortname
  8. t.integer :parent_id
  9. t.timestamps
  10. end
  11. end
  12. end