Advertisement
hocikto19

project model

Jun 29th, 2016
309
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Rails 0.98 KB | None | 0 0
  1. class Project < ActiveRecord::Base
  2.  
  3.   enum offer_type_code: {
  4.       sale:     'sale',
  5.       rent:     'rent',
  6.       purchase: 'purchase',
  7.       sublease: 'sublease'
  8.   }
  9.  
  10.   enum project_state_code: {
  11.       in_preparation:      'in_preparation',
  12.       under_construction: 'under_construction',
  13.       finished:           'finished',
  14.       approved:           'approved'
  15.   }
  16.  
  17.   enum standard_code: {
  18.       standard:         'standard',
  19.       higher_standard:  'higher_standard',
  20.       bare:             'bare'
  21.   }
  22.  
  23.   enum construction_code: {
  24.       reinforced_concrete:            'reinforced_concrete',
  25.       brick:                          'brick',
  26.       reinforced_concrete_with_brick: 'reinforced_concrete_with_brick',
  27.       itong:                          'itong',
  28.       straw:                          'straw',
  29.       ceramics:                       'ceramics',
  30.       wood:                           'wood',
  31.       mounted_wood:                   'mounted_wood'
  32.   }
  33. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement