20140919000001_update_object_manager2.rb 926 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. class UpdateObjectManager2 < ActiveRecord::Migration
  2. def up
  3. ObjectManager::Attribute.add(
  4. :object => 'Ticket',
  5. :name => 'customer_id',
  6. :display => 'Customer',
  7. :data_type => 'user_autocompletion',
  8. :data_option => {
  9. :autocapitalize => false,
  10. :multiple => false,
  11. :null => false,
  12. :limit => 200,
  13. :placeholder => 'Enter Person or Organisation/Company',
  14. :minLengt => 2,
  15. :translate => false,
  16. },
  17. :editable => false,
  18. :active => true,
  19. :screens => {
  20. :create_top => {
  21. :Agent => {
  22. :null => false,
  23. },
  24. },
  25. :edit => {},
  26. },
  27. :pending_migration => false,
  28. :position => 10,
  29. :created_by_id => 1,
  30. :updated_by_id => 1,
  31. )
  32. end
  33. def down
  34. end
  35. end