Advertisement
Guest User

Untitled

a guest
Sep 3rd, 2015
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 48.90 KB | None | 0 0
  1. # encoding: UTF-8
  2. # This file is auto-generated from the current state of the database. Instead
  3. # of editing this file, please use the migrations feature of Active Record to
  4. # incrementally modify your database, and then regenerate this schema definition.
  5. #
  6. # Note that this schema.rb definition is the authoritative source for your
  7. # database schema. If you need to create the application database on another
  8. # system, you should be using db:schema:load, not running all the migrations
  9. # from scratch. The latter is a flawed and unsustainable approach (the more migrations
  10. # you'll amass, the slower it'll run and the greater likelihood for issues).
  11. #
  12. # It's strongly recommended to check this file into your version control system.
  13.  
  14. ActiveRecord::Schema.define(:version => 20150901074551) do
  15.  
  16. create_table "access_contact_attrs", :force => true do |t|
  17. t.integer "count"
  18. t.integer "service_access_contact_id"
  19. end
  20.  
  21. create_table "active_admin_comments", :force => true do |t|
  22. t.string "resource_id", :null => false
  23. t.string "resource_type", :null => false
  24. t.integer "author_id"
  25. t.string "author_type"
  26. t.text "body"
  27. t.datetime "created_at", :null => false
  28. t.datetime "updated_at", :null => false
  29. t.string "namespace"
  30. end
  31.  
  32. add_index "active_admin_comments", ["author_type", "author_id"], :name => "index_active_admin_comments_on_author_type_and_author_id"
  33. add_index "active_admin_comments", ["namespace"], :name => "index_active_admin_comments_on_namespace"
  34. add_index "active_admin_comments", ["resource_type", "resource_id"], :name => "index_admin_notes_on_resource_type_and_resource_id"
  35.  
  36. create_table "admin_users", :force => true do |t|
  37. t.string "email", :default => "", :null => false
  38. t.string "encrypted_password", :default => "", :null => false
  39. t.string "reset_password_token"
  40. t.datetime "reset_password_sent_at"
  41. t.datetime "remember_created_at"
  42. t.integer "sign_in_count", :default => 0
  43. t.datetime "current_sign_in_at"
  44. t.datetime "last_sign_in_at"
  45. t.string "current_sign_in_ip"
  46. t.string "last_sign_in_ip"
  47. t.string "username"
  48. t.datetime "created_at", :null => false
  49. t.datetime "updated_at", :null => false
  50. t.string "role"
  51. t.string "token"
  52. end
  53.  
  54. add_index "admin_users", ["email"], :name => "index_admin_users_on_email", :unique => true
  55. add_index "admin_users", ["reset_password_token"], :name => "index_admin_users_on_reset_password_token", :unique => true
  56.  
  57. create_table "app_votes", :force => true do |t|
  58. t.integer "app_id"
  59. t.integer "user_id"
  60. t.string "email"
  61. t.string "ip"
  62. t.datetime "created_at", :null => false
  63. t.datetime "updated_at", :null => false
  64. t.string "token"
  65. t.datetime "confirmed_at"
  66. t.datetime "confirmation_sent_at"
  67. end
  68.  
  69. add_index "app_votes", ["app_id"], :name => "index_app_votes_on_app_id"
  70.  
  71. create_table "apps", :force => true do |t|
  72. t.string "title"
  73. t.string "description"
  74. t.string "link_to_app"
  75. t.string "logo_file_name"
  76. t.string "logo_content_type"
  77. t.integer "logo_file_size"
  78. t.datetime "logo_updated_at"
  79. t.datetime "created_at", :null => false
  80. t.datetime "updated_at", :null => false
  81. end
  82.  
  83. create_table "banner_service_requests", :force => true do |t|
  84. t.integer "user_id"
  85. t.integer "banner_id"
  86. t.datetime "created_at", :null => false
  87. t.datetime "updated_at", :null => false
  88. t.string "state"
  89. end
  90.  
  91. add_index "banner_service_requests", ["banner_id"], :name => "index_banner_service_requests_on_banner_id"
  92. add_index "banner_service_requests", ["user_id"], :name => "index_banner_service_requests_on_user_id"
  93.  
  94. create_table "banners", :force => true do |t|
  95. t.text "description"
  96. t.string "size"
  97. t.string "location"
  98. t.integer "monthly_price"
  99. t.integer "daily_price"
  100. t.datetime "created_at", :null => false
  101. t.datetime "updated_at", :null => false
  102. t.string "note"
  103. end
  104.  
  105. create_table "blogs", :force => true do |t|
  106. t.string "title"
  107. t.string "type_blog"
  108. t.text "overview"
  109. t.integer "user_id"
  110. t.integer "company_id"
  111. t.boolean "promote"
  112. t.datetime "created_at", :null => false
  113. t.datetime "updated_at", :null => false
  114. t.string "slug"
  115. t.float "rating", :default => 0.0
  116. end
  117.  
  118. add_index "blogs", ["slug"], :name => "index_blogs_on_slug", :unique => true
  119.  
  120. create_table "browsings", :force => true do |t|
  121. t.integer "user_id"
  122. t.integer "browsinable_id"
  123. t.string "browsinable_type"
  124. t.datetime "created_at", :null => false
  125. t.datetime "updated_at", :null => false
  126. end
  127.  
  128. add_index "browsings", ["browsinable_id", "browsinable_type"], :name => "index_browsings_on_browsinable_id_and_browsinable_type"
  129.  
  130. create_table "browsitems", :force => true do |t|
  131. t.string "browsitemable_type"
  132. t.integer "browsitemable_id"
  133. t.integer "promo_view"
  134. t.integer "promo_click"
  135. t.integer "four_view"
  136. t.integer "four_click"
  137. t.integer "actual_review_view"
  138. t.integer "actual_review_click"
  139. t.datetime "created_at", :null => false
  140. t.datetime "updated_at", :null => false
  141. end
  142.  
  143. add_index "browsitems", ["browsitemable_type", "browsitemable_id"], :name => "index_browsitems_on_browsitemable_type_and_browsitemable_id"
  144.  
  145. create_table "categories_faqs", :force => true do |t|
  146. t.string "title"
  147. t.string "slug"
  148. t.datetime "created_at", :null => false
  149. t.datetime "updated_at", :null => false
  150. end
  151.  
  152. add_index "categories_faqs", ["slug"], :name => "index_categories_faqs_on_slug"
  153.  
  154. create_table "cities", :force => true do |t|
  155. t.integer "country_id", :limit => 3, :null => false
  156. t.string "title"
  157. t.datetime "updated_at", :null => false
  158. t.datetime "created_at", :null => false
  159. t.boolean "published"
  160. end
  161.  
  162. add_index "cities", ["country_id"], :name => "id_country"
  163.  
  164. create_table "ckeditor_assets", :force => true do |t|
  165. t.string "data_file_name", :null => false
  166. t.string "data_content_type"
  167. t.integer "data_file_size"
  168. t.integer "assetable_id"
  169. t.string "assetable_type", :limit => 30
  170. t.string "type", :limit => 30
  171. t.datetime "created_at", :null => false
  172. t.datetime "updated_at", :null => false
  173. end
  174.  
  175. add_index "ckeditor_assets", ["assetable_type", "assetable_id"], :name => "idx_ckeditor_assetable"
  176. add_index "ckeditor_assets", ["assetable_type", "type", "assetable_id"], :name => "idx_ckeditor_assetable_type"
  177.  
  178. create_table "clicks", :force => true do |t|
  179. t.integer "clickable_id"
  180. t.string "clickable_type"
  181. t.integer "user_id"
  182. t.datetime "created_at", :null => false
  183. t.datetime "updated_at", :null => false
  184. end
  185.  
  186. add_index "clicks", ["clickable_id", "clickable_type"], :name => "index_clicks_on_clickable_id_and_clickable_type"
  187.  
  188. create_table "comments", :force => true do |t|
  189. t.integer "commentable_id", :default => 0
  190. t.string "commentable_type", :default => ""
  191. t.string "title", :default => ""
  192. t.text "body"
  193. t.string "subject", :default => ""
  194. t.integer "user_id", :default => 0, :null => false
  195. t.integer "parent_id"
  196. t.integer "lft"
  197. t.integer "rgt"
  198. t.boolean "official_response"
  199. t.datetime "created_at", :null => false
  200. t.datetime "updated_at", :null => false
  201. t.integer "comments_count", :default => 0
  202. end
  203.  
  204. add_index "comments", ["commentable_id"], :name => "index_comments_on_commentable_id"
  205. add_index "comments", ["commentable_type", "commentable_id"], :name => "index_comments_on_commentable_type_and_commentable_id"
  206. add_index "comments", ["parent_id"], :name => "index_comments_on_parent_id"
  207. add_index "comments", ["user_id"], :name => "index_comments_on_user_id"
  208.  
  209. create_table "companies", :force => true do |t|
  210. t.string "title"
  211. t.string "subdomain"
  212. t.integer "browsings"
  213. t.string "realname"
  214. t.string "homepage"
  215. t.text "overview"
  216. t.integer "user_id"
  217. t.integer "year_of_foundation"
  218. t.string "basic_email"
  219. t.boolean "moderate"
  220. t.integer "awg_employees"
  221. t.float "summary_rating"
  222. t.float "change_summary_rating"
  223. t.integer "plan_id", :default => 1
  224. t.date "plan_start"
  225. t.date "plan_end"
  226. t.integer "nid"
  227. t.string "logo_file_name"
  228. t.string "logo_content_type"
  229. t.integer "logo_file_size"
  230. t.datetime "logo_updated_at"
  231. t.datetime "created_at", :null => false
  232. t.datetime "updated_at", :null => false
  233. t.string "phone"
  234. t.string "slug"
  235. t.boolean "archive", :default => false
  236. t.integer "comments_count", :default => 0
  237. t.integer "browsings_count", :default => 0
  238. t.text "small_overview"
  239. t.string "monochrome_logo_file_name"
  240. t.string "monochrome_logo_content_type"
  241. t.integer "monochrome_logo_file_size"
  242. t.datetime "monochrome_logo_updated_at"
  243. t.string "background_image_file_name"
  244. t.string "background_image_content_type"
  245. t.integer "background_image_file_size"
  246. t.datetime "background_image_updated_at"
  247. end
  248.  
  249. add_index "companies", ["realname"], :name => "index_companies_on_realname"
  250. add_index "companies", ["slug"], :name => "index_companies_on_slug"
  251. add_index "companies", ["subdomain"], :name => "index_companies_on_subdomain"
  252. add_index "companies", ["user_id"], :name => "index_companies_on_user_id"
  253.  
  254. create_table "company_addresses", :force => true do |t|
  255. t.string "title"
  256. t.integer "city_id"
  257. t.string "address"
  258. t.string "email"
  259. t.boolean "basic_office"
  260. t.integer "company_id"
  261. t.datetime "created_at", :null => false
  262. t.datetime "updated_at", :null => false
  263. end
  264.  
  265. create_table "company_awards", :force => true do |t|
  266. t.string "title"
  267. t.string "link"
  268. t.integer "company_id"
  269. t.datetime "created_at", :null => false
  270. t.datetime "updated_at", :null => false
  271. t.string "image_file_name"
  272. t.string "image_content_type"
  273. t.integer "image_file_size"
  274. t.datetime "image_updated_at"
  275. end
  276.  
  277. add_index "company_awards", ["company_id"], :name => "index_company_awards_on_company_id"
  278.  
  279. create_table "company_certificates", :force => true do |t|
  280. t.string "title"
  281. t.string "link"
  282. t.datetime "created_at", :null => false
  283. t.datetime "updated_at", :null => false
  284. t.integer "company_id"
  285. end
  286.  
  287. create_table "company_foreign_jobs", :force => true do |t|
  288. t.string "title"
  289. t.string "url"
  290. t.integer "company_id"
  291. t.datetime "created_at", :null => false
  292. t.datetime "updated_at", :null => false
  293. end
  294.  
  295. add_index "company_foreign_jobs", ["company_id"], :name => "index_company_foreign_jobs_on_company_id"
  296.  
  297. create_table "company_hrs", :force => true do |t|
  298. t.integer "user_id"
  299. t.integer "company_id"
  300. t.integer "status"
  301. t.datetime "created_at", :null => false
  302. t.datetime "updated_at", :null => false
  303. end
  304.  
  305. add_index "company_hrs", ["company_id"], :name => "index_company_hrs_on_company_id"
  306. add_index "company_hrs", ["user_id"], :name => "index_company_hrs_on_user_id"
  307.  
  308. create_table "company_organizations", :force => true do |t|
  309. t.string "title"
  310. t.string "link"
  311. t.integer "company_id"
  312. t.datetime "created_at", :null => false
  313. t.datetime "updated_at", :null => false
  314. end
  315.  
  316. add_index "company_organizations", ["company_id"], :name => "index_company_organizations_on_company_id"
  317.  
  318. create_table "company_phones", :force => true do |t|
  319. t.string "phone"
  320. t.integer "company_address_id"
  321. t.datetime "created_at", :null => false
  322. t.datetime "updated_at", :null => false
  323. end
  324.  
  325. add_index "company_phones", ["company_address_id"], :name => "index_company_phones_on_company_address_id"
  326.  
  327. create_table "company_projects", :force => true do |t|
  328. t.string "title"
  329. t.text "overview"
  330. t.integer "company_id"
  331. t.datetime "created_at", :null => false
  332. t.datetime "updated_at", :null => false
  333. end
  334.  
  335. create_table "company_specializations", :force => true do |t|
  336. t.integer "company_id"
  337. t.integer "specialization_id"
  338. t.datetime "created_at", :null => false
  339. t.datetime "updated_at", :null => false
  340. end
  341.  
  342. add_index "company_specializations", ["company_id"], :name => "index_company_specializations_on_company_id"
  343. add_index "company_specializations", ["specialization_id"], :name => "index_company_specializations_on_specialization_id"
  344.  
  345. create_table "company_spotlight_attrs", :force => true do |t|
  346. t.date "date_start"
  347. t.date "date_end"
  348. t.integer "service_company_spotlight_id"
  349. t.integer "browsings_count", :default => 0
  350. t.integer "clicks_count", :default => 0
  351. end
  352.  
  353. add_index "company_spotlight_attrs", ["service_company_spotlight_id"], :name => "index_company_spotlight_attrs_on_service_company_spotlight_id"
  354.  
  355. create_table "complains", :force => true do |t|
  356. t.integer "user_id"
  357. t.integer "complain_id"
  358. t.string "complain_type"
  359. t.text "body"
  360. t.datetime "created_at", :null => false
  361. t.datetime "updated_at", :null => false
  362. end
  363.  
  364. create_table "content_configs", :force => true do |t|
  365. t.integer "bigboard_items"
  366. t.integer "material_items_tab"
  367. t.integer "material_items_load"
  368. t.integer "company_widget_items"
  369. t.integer "reviews_items"
  370. t.integer "blogs_widget_items"
  371. t.datetime "created_at", :null => false
  372. t.datetime "updated_at", :null => false
  373. end
  374.  
  375. create_table "countries", :force => true do |t|
  376. t.string "title", :limit => 50, :null => false
  377. t.datetime "updated_at", :null => false
  378. t.datetime "created_at", :null => false
  379. end
  380.  
  381. create_table "delivery_jobs", :force => true do |t|
  382. t.integer "job_id"
  383. t.datetime "created_at", :null => false
  384. t.datetime "updated_at", :null => false
  385. t.integer "company_id"
  386. t.boolean "status"
  387. end
  388.  
  389. add_index "delivery_jobs", ["job_id"], :name => "index_delivery_jobs_on_job_id"
  390.  
  391. create_table "dev_by_settings", :force => true do |t|
  392. t.integer "employee_range"
  393. t.integer "review_min"
  394. t.datetime "created_at", :null => false
  395. t.datetime "updated_at", :null => false
  396. end
  397.  
  398. create_table "epam_links", :force => true do |t|
  399. t.string "link"
  400. t.string "title"
  401. t.integer "weight"
  402. t.datetime "created_at", :null => false
  403. t.datetime "updated_at", :null => false
  404. end
  405.  
  406. create_table "event_categories", :force => true do |t|
  407. t.string "title"
  408. t.datetime "created_at", :null => false
  409. t.datetime "updated_at", :null => false
  410. end
  411.  
  412. create_table "event_companies", :force => true do |t|
  413. t.integer "event_id"
  414. t.integer "company_id"
  415. t.string "title"
  416. t.text "overview"
  417. t.string "logo_file_name"
  418. t.string "logo_content_type"
  419. t.integer "logo_file_size"
  420. t.datetime "logo_updated_at"
  421. end
  422.  
  423. create_table "event_registrations", :force => true do |t|
  424. t.integer "event_id"
  425. t.boolean "user_name"
  426. t.boolean "position"
  427. t.boolean "level_skill"
  428. t.boolean "experience"
  429. t.boolean "company"
  430. t.boolean "phone"
  431. t.boolean "email"
  432. t.boolean "questions"
  433. end
  434.  
  435. create_table "events", :force => true do |t|
  436. t.string "title"
  437. t.integer "user_id"
  438. t.datetime "date_start"
  439. t.datetime "date_end"
  440. t.string "email"
  441. t.text "overview"
  442. t.integer "event_category_id"
  443. t.integer "city_id"
  444. t.string "address"
  445. t.float "longitude"
  446. t.float "latitude"
  447. t.string "www"
  448. t.string "price"
  449. t.boolean "registration", :default => false
  450. t.boolean "published", :default => false
  451. t.integer "browsings", :default => 0
  452. t.datetime "created_at", :null => false
  453. t.datetime "updated_at", :null => false
  454. t.string "slug"
  455. t.string "phone"
  456. t.boolean "popular"
  457. t.boolean "hot"
  458. t.boolean "notification", :default => false
  459. t.integer "comments_count", :default => 0
  460. t.string "hot_teaser_file_name"
  461. t.string "hot_teaser_content_type"
  462. t.integer "hot_teaser_file_size"
  463. t.datetime "hot_teaser_updated_at"
  464. end
  465.  
  466. add_index "events", ["slug"], :name => "index_events_on_slug", :unique => true
  467. add_index "events", ["title"], :name => "index_events_on_title"
  468. add_index "events", ["user_id"], :name => "index_events_on_user_id"
  469.  
  470. create_table "faqs", :force => true do |t|
  471. t.integer "category_id"
  472. t.string "title"
  473. t.text "content"
  474. t.datetime "created_at", :null => false
  475. t.datetime "updated_at", :null => false
  476. end
  477.  
  478. create_table "favorites", :force => true do |t|
  479. t.integer "favoritetable_id"
  480. t.string "favoritetable_type"
  481. t.integer "user_id"
  482. t.datetime "created_at", :null => false
  483. t.datetime "updated_at", :null => false
  484. end
  485.  
  486. create_table "friendly_id_slugs", :force => true do |t|
  487. t.string "slug", :null => false
  488. t.integer "sluggable_id", :null => false
  489. t.string "sluggable_type", :limit => 40
  490. t.datetime "created_at"
  491. end
  492.  
  493. add_index "friendly_id_slugs", ["slug", "sluggable_type"], :name => "index_friendly_id_slugs_on_slug_and_sluggable_type", :unique => true
  494. add_index "friendly_id_slugs", ["sluggable_id"], :name => "index_friendly_id_slugs_on_sluggable_id"
  495. add_index "friendly_id_slugs", ["sluggable_type"], :name => "index_friendly_id_slugs_on_sluggable_type"
  496.  
  497. create_table "galleries", :force => true do |t|
  498. t.integer "user_id"
  499. t.integer "company_id"
  500. t.boolean "published"
  501. t.string "title"
  502. t.integer "count_views"
  503. t.string "source_file_name"
  504. t.string "source_content_type"
  505. t.integer "source_file_size"
  506. t.datetime "source_updated_at"
  507. t.datetime "created_at", :null => false
  508. t.datetime "updated_at", :null => false
  509. end
  510.  
  511. add_index "galleries", ["company_id"], :name => "index_galleries_on_company_id"
  512. add_index "galleries", ["user_id"], :name => "index_galleries_on_user_id"
  513.  
  514. create_table "hackaton_apps", :force => true do |t|
  515. t.string "title"
  516. t.text "content"
  517. t.datetime "created_at", :null => false
  518. t.datetime "updated_at", :null => false
  519. t.string "image_file_name"
  520. t.string "image_content_type"
  521. t.integer "image_file_size"
  522. t.datetime "image_updated_at"
  523. t.string "link"
  524. end
  525.  
  526. create_table "hakaton_registraions", :force => true do |t|
  527. t.string "email"
  528. t.string "name"
  529. t.boolean "published"
  530. t.datetime "created_at", :null => false
  531. t.datetime "updated_at", :null => false
  532. t.string "company"
  533. t.integer "position_id"
  534. t.string "level_skill"
  535. end
  536.  
  537. create_table "imworkinghere_projects", :force => true do |t|
  538. t.string "title"
  539. t.string "position"
  540. t.string "overview"
  541. t.string "responsibility"
  542. t.string "use_technologies"
  543. t.integer "imworkinghere_id"
  544. t.datetime "created_at", :null => false
  545. t.datetime "updated_at", :null => false
  546. end
  547.  
  548. create_table "imworkingheres", :force => true do |t|
  549. t.integer "user_id"
  550. t.integer "company_id"
  551. t.string "position"
  552. t.date "date_start"
  553. t.date "date_end"
  554. t.boolean "save_profile"
  555. t.string "prof_level_position"
  556. t.integer "prof_level_year"
  557. t.integer "user_type_of_activity_id"
  558. t.integer "resume_id"
  559. t.datetime "created_at", :null => false
  560. t.datetime "updated_at", :null => false
  561. t.boolean "work_currently", :default => false
  562. t.string "company_title"
  563. end
  564.  
  565. add_index "imworkingheres", ["company_id"], :name => "index_imworkingheres_on_company_id"
  566. add_index "imworkingheres", ["position"], :name => "index_imworkingheres_on_position"
  567. add_index "imworkingheres", ["resume_id"], :name => "index_imworkingheres_on_resume_id"
  568. add_index "imworkingheres", ["user_id"], :name => "index_imworkingheres_on_user_id"
  569. add_index "imworkingheres", ["user_type_of_activity_id"], :name => "index_imworkingheres_on_user_type_of_activity_id"
  570.  
  571. create_table "ironmen", :force => true do |t|
  572. t.string "email"
  573. t.string "token"
  574. t.datetime "confirmation_at"
  575. t.string "user_ip"
  576. t.datetime "created_at", :null => false
  577. t.datetime "updated_at", :null => false
  578. t.boolean "with_email"
  579. end
  580.  
  581. create_table "job_applications", :force => true do |t|
  582. t.string "name"
  583. t.string "email"
  584. t.text "message"
  585. t.string "confirmation_token"
  586. t.string "resume_file_name"
  587. t.string "resume_content_type"
  588. t.integer "resume_file_size"
  589. t.datetime "resume_updated_at"
  590. t.datetime "created_at", :null => false
  591. t.datetime "updated_at", :null => false
  592. t.integer "job_id"
  593. end
  594.  
  595. add_index "job_applications", ["confirmation_token"], :name => "index_job_applications_on_confirmation_token"
  596.  
  597. create_table "job_langs", :force => true do |t|
  598. t.integer "job_id"
  599. t.integer "language_id"
  600. t.integer "language_level"
  601. t.datetime "created_at", :null => false
  602. t.datetime "updated_at", :null => false
  603. end
  604.  
  605. create_table "job_responses", :force => true do |t|
  606. t.integer "job_id"
  607. t.integer "resume_id"
  608. t.integer "pm_id"
  609. t.string "resume_type"
  610. t.integer "company_id"
  611. t.datetime "created_at", :null => false
  612. t.datetime "updated_at", :null => false
  613. t.integer "browsings_count", :default => 0
  614. end
  615.  
  616. add_index "job_responses", ["job_id"], :name => "index_job_responses_on_job_id"
  617.  
  618. create_table "job_types", :force => true do |t|
  619. t.string "title"
  620. t.datetime "created_at", :null => false
  621. t.datetime "updated_at", :null => false
  622. end
  623.  
  624. create_table "job_ups", :force => true do |t|
  625. t.integer "company_id"
  626. t.integer "user_id"
  627. t.integer "job_id"
  628. t.datetime "created_at", :null => false
  629. t.datetime "updated_at", :null => false
  630. t.integer "tariff_plan_id"
  631. end
  632.  
  633. create_table "jobs", :force => true do |t|
  634. t.string "title"
  635. t.integer "user_type_of_activity_id"
  636. t.text "overview"
  637. t.integer "company_id"
  638. t.integer "browsings"
  639. t.boolean "status"
  640. t.integer "user_id"
  641. t.boolean "job_in_search"
  642. t.boolean "job_in_premium", :default => false
  643. t.boolean "job_in_ads"
  644. t.integer "salary_value"
  645. t.boolean "bonus_and_premium"
  646. t.text "bonus_and_premium_overview"
  647. t.boolean "benefits_package"
  648. t.text "benefits_package_overview"
  649. t.integer "job_type_id"
  650. t.integer "jobs"
  651. t.integer "city_id"
  652. t.boolean "move_to_other_place"
  653. t.date "date_start"
  654. t.date "date_end"
  655. t.integer "experience"
  656. t.integer "user_level_skill_id"
  657. t.integer "education_id"
  658. t.boolean "duty_journey"
  659. t.boolean "published", :default => false
  660. t.integer "project_id"
  661. t.datetime "created_at", :null => false
  662. t.datetime "updated_at", :null => false
  663. t.integer "nid"
  664. t.datetime "sorted_up"
  665. t.integer "views_in_widget_top"
  666. t.integer "views_in_widget_side", :default => 1
  667. t.float "view_k", :default => 1.0
  668. t.boolean "delivery"
  669. t.boolean "twitter"
  670. t.boolean "company_page"
  671. t.integer "comments_count", :default => 0
  672. t.integer "browsings_count", :default => 0
  673. t.boolean "track_views", :default => false
  674. end
  675.  
  676. add_index "jobs", ["company_id", "status"], :name => "index_jobs_on_company_id_and_status"
  677. add_index "jobs", ["user_id"], :name => "index_jobs_on_user_id"
  678. add_index "jobs", ["user_type_of_activity_id"], :name => "index_jobs_on_user_type_of_activity_id"
  679.  
  680. create_table "language_refs", :force => true do |t|
  681. t.string "languagetable_tyle"
  682. t.integer "languagetable_id"
  683. t.integer "language_id"
  684. t.integer "language_level_id"
  685. t.datetime "created_at", :null => false
  686. t.datetime "updated_at", :null => false
  687. end
  688.  
  689. add_index "language_refs", ["language_id"], :name => "index_language_refs_on_language_id"
  690.  
  691. create_table "languages", :force => true do |t|
  692. t.string "title"
  693. t.datetime "created_at", :null => false
  694. t.datetime "updated_at", :null => false
  695. end
  696.  
  697. create_table "logged_updates", :force => true do |t|
  698. t.integer "logged_id"
  699. t.string "logged_type"
  700. t.string "reason"
  701. t.integer "user_id"
  702. t.datetime "created_at", :null => false
  703. t.datetime "updated_at", :null => false
  704. end
  705.  
  706. create_table "logged_views", :force => true do |t|
  707. t.integer "object_id"
  708. t.string "model_name"
  709. t.integer "user_id"
  710. t.datetime "created_at", :null => false
  711. t.datetime "updated_at", :null => false
  712. end
  713.  
  714. create_table "mo2013_tickets", :force => true do |t|
  715. t.integer "count_tickets"
  716. t.datetime "created_at", :null => false
  717. t.datetime "updated_at", :null => false
  718. t.integer "rate"
  719. t.string "constanta"
  720. t.string "tickets_text"
  721. end
  722.  
  723. create_table "new_company_widgets", :force => true do |t|
  724. t.integer "company_id"
  725. t.text "preview"
  726. t.boolean "published"
  727. t.datetime "date_start"
  728. t.datetime "date_end"
  729. t.datetime "created_at", :null => false
  730. t.datetime "updated_at", :null => false
  731. end
  732.  
  733. add_index "new_company_widgets", ["company_id"], :name => "index_new_company_widgets_on_company_id"
  734.  
  735. create_table "news", :force => true do |t|
  736. t.string "title"
  737. t.text "content"
  738. t.integer "user_id"
  739. t.boolean "published"
  740. t.string "slug"
  741. t.datetime "created_at", :null => false
  742. t.datetime "updated_at", :null => false
  743. t.integer "browsings"
  744. t.boolean "important"
  745. t.integer "nid"
  746. t.string "source"
  747. t.string "source_title"
  748. t.integer "comments_count", :default => 0
  749. t.integer "rubric_id"
  750. end
  751.  
  752. add_index "news", ["slug"], :name => "index_news_on_slug", :unique => true
  753. add_index "news", ["user_id"], :name => "index_news_on_admin_user_id"
  754.  
  755. create_table "pms", :force => true do |t|
  756. t.text "message"
  757. t.integer "sender_id"
  758. t.integer "recipient_id"
  759. t.datetime "created_at", :null => false
  760. t.datetime "updated_at", :null => false
  761. t.boolean "read"
  762. t.boolean "response"
  763. t.boolean "offer"
  764. end
  765.  
  766. create_table "rails_admin_histories", :force => true do |t|
  767. t.text "message"
  768. t.string "username"
  769. t.integer "item"
  770. t.string "table"
  771. t.integer "month", :limit => 2
  772. t.integer "year", :limit => 8
  773. t.datetime "created_at", :null => false
  774. t.datetime "updated_at", :null => false
  775. end
  776.  
  777. add_index "rails_admin_histories", ["item", "table", "month", "year"], :name => "index_rails_admin_histories"
  778.  
  779. create_table "rates", :force => true do |t|
  780. t.boolean "value"
  781. t.integer "rateable_id"
  782. t.string "rateable_type"
  783. t.integer "user_id"
  784. t.datetime "created_at", :null => false
  785. t.datetime "updated_at", :null => false
  786. end
  787.  
  788. add_index "rates", ["rateable_id", "rateable_type"], :name => "index_rates_on_rateable_id_and_rateable_type"
  789. add_index "rates", ["user_id"], :name => "index_rates_on_user_id"
  790. add_index "rates", ["value", "rateable_id", "rateable_type"], :name => "index_rates_on_value_and_rateable_id_and_rateable_type"
  791. add_index "rates", ["value"], :name => "index_rates_on_value"
  792.  
  793. create_table "resume_educations", :force => true do |t|
  794. t.string "specialization"
  795. t.date "date_start"
  796. t.date "date_end"
  797. t.string "organization"
  798. t.integer "city_id"
  799. t.integer "resume_id"
  800. t.datetime "created_at", :null => false
  801. t.datetime "updated_at", :null => false
  802. end
  803.  
  804. add_index "resume_educations", ["resume_id"], :name => "index_resume_educations_on_resume_id"
  805.  
  806. create_table "resume_files", :force => true do |t|
  807. t.string "title"
  808. t.integer "language_id"
  809. t.integer "status"
  810. t.integer "default"
  811. t.integer "user_id"
  812. t.string "source_file_name"
  813. t.string "source_content_type"
  814. t.integer "source_file_size"
  815. t.datetime "source_updated_at"
  816. t.integer "browsings"
  817. t.datetime "created_at", :null => false
  818. t.datetime "updated_at", :null => false
  819. end
  820.  
  821. add_index "resume_files", ["user_id"], :name => "index_resume_files_on_user_id"
  822.  
  823. create_table "resume_languages", :force => true do |t|
  824. t.integer "language_id"
  825. t.string "level_prof"
  826. t.integer "level_year"
  827. t.integer "resume_id"
  828. t.datetime "created_at", :null => false
  829. t.datetime "updated_at", :null => false
  830. end
  831.  
  832. create_table "resume_technologies", :force => true do |t|
  833. t.integer "resume_id"
  834. t.string "technology"
  835. t.string "level_prof"
  836. t.integer "level_year"
  837. t.datetime "created_at", :null => false
  838. t.datetime "updated_at", :null => false
  839. end
  840.  
  841. add_index "resume_technologies", ["resume_id"], :name => "index_resume_technologies_on_resume_id"
  842.  
  843. create_table "resumes", :force => true do |t|
  844. t.string "title"
  845. t.integer "user_id"
  846. t.string "language"
  847. t.text "about_me"
  848. t.integer "user_type_of_activity_id"
  849. t.integer "user_level_skill_id"
  850. t.integer "status"
  851. t.boolean "hrm_can_find", :default => true
  852. t.boolean "default"
  853. t.date "birthday"
  854. t.integer "experience"
  855. t.integer "language_id"
  856. t.integer "integer"
  857. t.integer "city_id"
  858. t.integer "user_contact_id"
  859. t.integer "imworkinghere_id"
  860. t.integer "resume_education_id"
  861. t.integer "resume_sertificate_and_awards_id"
  862. t.integer "browsings"
  863. t.datetime "created_at", :null => false
  864. t.datetime "updated_at", :null => false
  865. end
  866.  
  867. create_table "reviews", :force => true do |t|
  868. t.integer "company_id"
  869. t.integer "user_id"
  870. t.text "overview"
  871. t.text "negative"
  872. t.text "positive"
  873. t.integer "communication_with_management"
  874. t.integer "advise_the_company"
  875. t.integer "proud_of_the_work"
  876. t.integer "productivity"
  877. t.integer "recognition_and_praise"
  878. t.integer "opportunities_for_growth"
  879. t.integer "promotion"
  880. t.integer "competence"
  881. t.integer "benefits"
  882. t.integer "exchange_of_knowledge"
  883. t.float "rate_sum"
  884. t.boolean "published"
  885. t.datetime "created_at", :null => false
  886. t.datetime "updated_at", :null => false
  887. t.integer "response_user_id"
  888. t.text "response_body"
  889. t.datetime "response_created_at"
  890. t.integer "comments_count", :default => 0
  891. t.boolean "show_on_homepage"
  892. t.boolean "show_on_widget_company"
  893. end
  894.  
  895. add_index "reviews", ["company_id"], :name => "index_reviews_on_company_id"
  896. add_index "reviews", ["user_id"], :name => "index_reviews_on_user_id"
  897.  
  898. create_table "revisions", :force => true do |t|
  899. t.string "model_name"
  900. t.integer "user_id"
  901. t.text "data_clone"
  902. t.boolean "need_moderate"
  903. t.boolean "current_version"
  904. t.integer "object_id"
  905. t.text "data_clone_addresses"
  906. t.text "data_clone_organizations"
  907. t.text "data_clone_awards"
  908. t.datetime "created_at", :null => false
  909. t.datetime "updated_at", :null => false
  910. t.string "file_file_name"
  911. t.string "file_content_type"
  912. t.integer "file_file_size"
  913. t.datetime "file_updated_at"
  914. end
  915.  
  916. create_table "rubrics", :force => true do |t|
  917. t.string "title"
  918. t.boolean "published"
  919. t.datetime "created_at", :null => false
  920. t.datetime "updated_at", :null => false
  921. end
  922.  
  923. create_table "salaries", :force => true do |t|
  924. t.integer "salary_position_id"
  925. t.integer "salary_dev_language_id"
  926. t.integer "salary_city_id"
  927. t.integer "salary_value"
  928. t.integer "length_of_work"
  929. t.boolean "published"
  930. t.datetime "created_at", :null => false
  931. t.datetime "updated_at", :null => false
  932. end
  933.  
  934. add_index "salaries", ["salary_city_id"], :name => "index_salaries_on_salary_city_id"
  935. add_index "salaries", ["salary_dev_language_id"], :name => "index_salaries_on_salary_dev_language_id"
  936. add_index "salaries", ["salary_position_id"], :name => "index_salaries_on_salary_position_id"
  937.  
  938. create_table "salary_cities", :force => true do |t|
  939. t.string "title"
  940. t.boolean "published"
  941. t.datetime "created_at", :null => false
  942. t.datetime "updated_at", :null => false
  943. end
  944.  
  945. create_table "salary_dev_languages", :force => true do |t|
  946. t.string "title"
  947. t.boolean "published"
  948. t.datetime "created_at", :null => false
  949. t.datetime "updated_at", :null => false
  950. end
  951.  
  952. create_table "salary_positions", :force => true do |t|
  953. t.string "title"
  954. t.boolean "published"
  955. t.datetime "created_at", :null => false
  956. t.datetime "updated_at", :null => false
  957. t.integer "status"
  958. t.boolean "development", :default => true
  959. end
  960.  
  961. create_table "service_requests", :force => true do |t|
  962. t.integer "user_id"
  963. t.text "content"
  964. t.integer "service_id"
  965. t.integer "servicetable_id"
  966. t.string "servicetable_type"
  967. t.datetime "created_at", :null => false
  968. t.datetime "updated_at", :null => false
  969. t.boolean "published", :default => false
  970. t.integer "company_id"
  971. t.text "request_params"
  972. t.string "type"
  973. end
  974.  
  975. create_table "services", :force => true do |t|
  976. t.string "title"
  977. t.datetime "created_at", :null => false
  978. t.datetime "updated_at", :null => false
  979. t.string "slug"
  980. t.text "description"
  981. end
  982.  
  983. add_index "services", ["slug"], :name => "index_services_on_slug", :unique => true
  984.  
  985. create_table "specializations", :force => true do |t|
  986. t.string "title"
  987. t.integer "older_id"
  988. t.datetime "created_at", :null => false
  989. t.datetime "updated_at", :null => false
  990. end
  991.  
  992. create_table "static_pages", :force => true do |t|
  993. t.string "title"
  994. t.text "content"
  995. t.integer "user_id"
  996. t.string "slug"
  997. t.datetime "created_at", :null => false
  998. t.datetime "updated_at", :null => false
  999. t.integer "browsings"
  1000. t.string "file_file_name"
  1001. t.string "file_content_type"
  1002. t.integer "file_file_size"
  1003. t.datetime "file_updated_at"
  1004. end
  1005.  
  1006. add_index "static_pages", ["slug"], :name => "index_static_pages_on_slug", :unique => true
  1007. add_index "static_pages", ["user_id"], :name => "index_static_pages_on_user_id"
  1008.  
  1009. create_table "taggings", :force => true do |t|
  1010. t.integer "tag_id"
  1011. t.integer "taggable_id"
  1012. t.string "taggable_type"
  1013. t.integer "tagger_id"
  1014. t.string "tagger_type"
  1015. t.string "context", :limit => 128
  1016. t.datetime "created_at"
  1017. end
  1018.  
  1019. add_index "taggings", ["tag_id", "taggable_id", "taggable_type", "context", "tagger_id", "tagger_type"], :name => "taggings_idx", :unique => true
  1020. add_index "taggings", ["taggable_id", "taggable_type", "context"], :name => "index_taggings_on_taggable_id_and_taggable_type_and_context"
  1021.  
  1022. create_table "tags", :force => true do |t|
  1023. t.string "name"
  1024. t.integer "taggings_count", :default => 0
  1025. end
  1026.  
  1027. add_index "tags", ["name"], :name => "index_tags_on_name"
  1028.  
  1029. create_table "tariff_change_logs", :force => true do |t|
  1030. t.integer "company_id"
  1031. t.integer "admin_user_id"
  1032. t.integer "old_plan_id"
  1033. t.integer "new_plan_id"
  1034. t.date "date_start"
  1035. t.date "date_end"
  1036. t.datetime "created_at", :null => false
  1037. t.datetime "updated_at", :null => false
  1038. t.date "old_plan_start"
  1039. t.date "old_plan_end"
  1040. end
  1041.  
  1042. add_index "tariff_change_logs", ["admin_user_id"], :name => "index_tariff_change_logs_on_admin_user_id"
  1043. add_index "tariff_change_logs", ["company_id"], :name => "index_tariff_change_logs_on_company_id"
  1044.  
  1045. create_table "tariff_plan_requests", :force => true do |t|
  1046. t.integer "company_id"
  1047. t.integer "user_id"
  1048. t.integer "old_plan_id"
  1049. t.string "new_plan_id"
  1050. t.text "comment"
  1051. t.datetime "created_at", :null => false
  1052. t.datetime "updated_at", :null => false
  1053. t.boolean "published"
  1054. t.date "plan_start"
  1055. t.date "plan_end"
  1056. end
  1057.  
  1058. create_table "tariff_plans", :force => true do |t|
  1059. t.string "title"
  1060. t.decimal "price_per_month", :precision => 10, :scale => 0
  1061. t.boolean "search_resume"
  1062. t.integer "show_contact_resume"
  1063. t.boolean "customization_company"
  1064. t.boolean "hidden_ads_company"
  1065. t.boolean "promo_page_company"
  1066. t.boolean "company_logo_ads_jobs"
  1067. t.integer "spotlight_company"
  1068. t.boolean "premium_service_company"
  1069. t.string "preview_text"
  1070. t.integer "jobs_add"
  1071. t.boolean "jobs_add_without_moderate"
  1072. t.integer "promo_jobs"
  1073. t.integer "premium_jobs"
  1074. t.boolean "day_jobs"
  1075. t.integer "subscription_jobs", :default => 0
  1076. t.integer "twitter_jobs"
  1077. t.datetime "created_at", :null => false
  1078. t.datetime "updated_at", :null => false
  1079. t.integer "up_job_in_search"
  1080. t.integer "job_in_company_profile"
  1081. t.text "description"
  1082. end
  1083.  
  1084. create_table "topics", :force => true do |t|
  1085. t.string "title"
  1086. t.integer "user_id"
  1087. t.text "content", :limit => 2147483647
  1088. t.integer "blog_id"
  1089. t.boolean "published"
  1090. t.integer "nid"
  1091. t.string "slug"
  1092. t.datetime "created_at", :null => false
  1093. t.datetime "updated_at", :null => false
  1094. t.integer "browsings"
  1095. t.boolean "status"
  1096. t.boolean "as_advertising"
  1097. t.boolean "show_in_main_page", :default => true
  1098. t.integer "comments_count", :default => 0
  1099. t.boolean "uncommentable", :default => false
  1100. t.string "teaser_file_name"
  1101. t.string "teaser_content_type"
  1102. t.integer "teaser_file_size"
  1103. t.datetime "teaser_updated_at"
  1104. t.text "lead"
  1105. t.boolean "bigboard"
  1106. t.boolean "promo_block_four"
  1107. t.integer "rubric_id"
  1108. t.string "teaser_middle_file_name"
  1109. t.string "teaser_middle_content_type"
  1110. t.integer "teaser_middle_file_size"
  1111. t.datetime "teaser_middle_updated_at"
  1112. t.string "teaser_big_file_name"
  1113. t.string "teaser_big_content_type"
  1114. t.integer "teaser_big_file_size"
  1115. t.datetime "teaser_big_updated_at"
  1116. t.integer "article_type", :default => 1
  1117. t.boolean "important", :default => false
  1118. t.string "source"
  1119. t.string "source_title"
  1120. t.string "teaser_for_facebook_file_name"
  1121. t.string "teaser_for_facebook_content_type"
  1122. t.integer "teaser_for_facebook_file_size"
  1123. t.datetime "teaser_for_facebook_updated_at"
  1124. t.integer "time_in_minutes_for_reading"
  1125. t.boolean "badge", :default => false
  1126. t.boolean "ban_from_yandex_news", :default => false
  1127. end
  1128.  
  1129. add_index "topics", ["article_type"], :name => "index_topics_on_article_type"
  1130. add_index "topics", ["blog_id"], :name => "index_topics_on_blog_id"
  1131. add_index "topics", ["slug"], :name => "index_topics_on_slug", :unique => true
  1132. add_index "topics", ["user_id"], :name => "index_topics_on_user_id"
  1133.  
  1134. create_table "twitter_jobs", :force => true do |t|
  1135. t.integer "company_id"
  1136. t.text "twitter_link"
  1137. t.datetime "created_at", :null => false
  1138. t.datetime "updated_at", :null => false
  1139. t.integer "job_id"
  1140. end
  1141.  
  1142. create_table "unidentified_service_requests", :force => true do |t|
  1143. t.string "name"
  1144. t.string "position"
  1145. t.string "company_name"
  1146. t.string "email"
  1147. t.string "phone_number"
  1148. t.integer "service_id"
  1149. t.datetime "created_at", :null => false
  1150. t.datetime "updated_at", :null => false
  1151. t.string "state"
  1152. t.integer "banner_id"
  1153. end
  1154.  
  1155. create_table "unidentified_tariff_plan_requests", :force => true do |t|
  1156. t.string "name"
  1157. t.string "position"
  1158. t.string "company_name"
  1159. t.string "email"
  1160. t.string "phone_number"
  1161. t.integer "tariff_plan_id"
  1162. t.string "state"
  1163. t.datetime "created_at", :null => false
  1164. t.datetime "updated_at", :null => false
  1165. end
  1166.  
  1167. add_index "unidentified_tariff_plan_requests", ["tariff_plan_id"], :name => "index_unidentified_tariff_plan_requests_on_tariff_plan_id"
  1168.  
  1169. create_table "user_broadcasts", :force => true do |t|
  1170. t.integer "user_id"
  1171. t.boolean "twitter_allow_company"
  1172. t.boolean "twitter_allow_review"
  1173. t.boolean "facebook_allow_company"
  1174. t.boolean "facebook_allow_review"
  1175. t.string "twitter_uid"
  1176. t.string "facebook_token"
  1177. t.string "twitter_token"
  1178. t.string "twitter_secret"
  1179. t.boolean "follow_news", :default => true
  1180. t.boolean "follow_events", :default => true
  1181. t.boolean "follow_answer_my_comments", :default => true
  1182. t.boolean "follow_comments_my_topic", :default => true
  1183. t.datetime "created_at", :null => false
  1184. t.datetime "updated_at", :null => false
  1185. end
  1186.  
  1187. add_index "user_broadcasts", ["user_id"], :name => "index_user_broadcasts_on_user_id"
  1188.  
  1189. create_table "user_certificate_and_awards", :force => true do |t|
  1190. t.integer "user_id"
  1191. t.string "title"
  1192. t.integer "year"
  1193. t.string "link"
  1194. t.integer "resume_id"
  1195. t.datetime "created_at", :null => false
  1196. t.datetime "updated_at", :null => false
  1197. end
  1198.  
  1199. create_table "user_contacts", :force => true do |t|
  1200. t.integer "user_id"
  1201. t.integer "user_type_contact_id"
  1202. t.string "value"
  1203. t.integer "resume_id"
  1204. t.datetime "created_at", :null => false
  1205. t.datetime "updated_at", :null => false
  1206. end
  1207.  
  1208. add_index "user_contacts", ["user_id"], :name => "index_user_contacts_on_user_id"
  1209. add_index "user_contacts", ["user_type_contact_id"], :name => "index_user_contacts_on_user_type_contact_id"
  1210.  
  1211. create_table "user_follow_companies", :force => true do |t|
  1212. t.integer "user_id"
  1213. t.integer "company_id"
  1214. t.boolean "follow_review"
  1215. t.datetime "created_at", :null => false
  1216. t.datetime "updated_at", :null => false
  1217. end
  1218.  
  1219. add_index "user_follow_companies", ["company_id"], :name => "index_user_follow_companies_on_company_id"
  1220. add_index "user_follow_companies", ["user_id"], :name => "index_user_follow_companies_on_user_id"
  1221.  
  1222. create_table "user_level_skills", :force => true do |t|
  1223. t.string "title"
  1224. t.datetime "created_at", :null => false
  1225. t.datetime "updated_at", :null => false
  1226. end
  1227.  
  1228. create_table "user_registration_on_events", :force => true do |t|
  1229. t.integer "user_id"
  1230. t.integer "event_id"
  1231. t.datetime "created_at", :null => false
  1232. t.datetime "updated_at", :null => false
  1233. t.string "user_name"
  1234. t.string "salary_position_id"
  1235. t.integer "user_level_skill_id"
  1236. t.integer "experience"
  1237. t.integer "company"
  1238. t.integer "phone"
  1239. t.string "email"
  1240. t.text "questions"
  1241. t.string "session_id"
  1242. end
  1243.  
  1244. add_index "user_registration_on_events", ["event_id"], :name => "index_user_registration_on_events_on_event_id"
  1245. add_index "user_registration_on_events", ["user_id"], :name => "index_user_registration_on_events_on_user_id"
  1246.  
  1247. create_table "user_type_contacts", :force => true do |t|
  1248. t.string "title"
  1249. t.datetime "created_at", :null => false
  1250. t.datetime "updated_at", :null => false
  1251. end
  1252.  
  1253. create_table "user_type_of_activities", :force => true do |t|
  1254. t.string "title"
  1255. t.datetime "created_at", :null => false
  1256. t.datetime "updated_at", :null => false
  1257. end
  1258.  
  1259. create_table "users", :force => true do |t|
  1260. t.string "email", :default => "", :null => false
  1261. t.string "username", :default => "", :null => false
  1262. t.string "encrypted_password", :default => "", :null => false
  1263. t.integer "uid"
  1264. t.string "first_name"
  1265. t.string "last_name"
  1266. t.boolean "gender"
  1267. t.text "about_me"
  1268. t.boolean "visibility_realname", :default => false
  1269. t.boolean "open_for_contact", :default => false
  1270. t.integer "experience"
  1271. t.integer "city_id"
  1272. t.boolean "i_am_hr", :default => false
  1273. t.date "birthday"
  1274. t.integer "user_level_skill_id"
  1275. t.integer "user_type_of_activity_id"
  1276. t.string "avatar_file_name"
  1277. t.string "avatar_content_type"
  1278. t.integer "avatar_file_size"
  1279. t.datetime "avatar_updated_at"
  1280. t.integer "position_id"
  1281. t.integer "dev_language_id"
  1282. t.datetime "requested_at"
  1283. t.string "role"
  1284. t.date "last_filled_salary"
  1285. t.boolean "email_send_for_salary"
  1286. t.string "reset_password_token"
  1287. t.datetime "reset_password_sent_at"
  1288. t.datetime "remember_created_at"
  1289. t.integer "sign_in_count", :default => 0
  1290. t.datetime "current_sign_in_at"
  1291. t.datetime "last_sign_in_at"
  1292. t.string "current_sign_in_ip"
  1293. t.string "last_sign_in_ip"
  1294. t.string "confirmation_token"
  1295. t.datetime "confirmed_at"
  1296. t.datetime "confirmation_sent_at"
  1297. t.string "unconfirmed_email"
  1298. t.integer "failed_attempts", :default => 0
  1299. t.string "unlock_token"
  1300. t.datetime "locked_at"
  1301. t.integer "sum_rate"
  1302. t.datetime "created_at", :null => false
  1303. t.datetime "updated_at", :null => false
  1304. t.integer "pos_rate"
  1305. t.integer "neg_rate"
  1306. t.string "slug"
  1307. t.boolean "banned"
  1308. t.string "banned_comment"
  1309. t.integer "contact_visibility_status", :default => 2
  1310. t.integer "comments_count", :default => 0
  1311. t.string "provider"
  1312. t.string "social_uid"
  1313. t.string "token"
  1314. end
  1315.  
  1316. add_index "users", ["confirmation_token"], :name => "index_users_on_confirmation_token", :unique => true
  1317. add_index "users", ["email"], :name => "index_users_on_email", :unique => true
  1318. add_index "users", ["reset_password_token"], :name => "index_users_on_reset_password_token", :unique => true
  1319. add_index "users", ["slug"], :name => "index_users_on_slug", :unique => true
  1320. add_index "users", ["unlock_token"], :name => "index_users_on_unlock_token", :unique => true
  1321. add_index "users", ["user_level_skill_id"], :name => "index_users_on_user_level_skill_id"
  1322. add_index "users", ["user_type_of_activity_id"], :name => "index_users_on_user_type_of_activity_id"
  1323.  
  1324. create_table "wanted_orders", :force => true do |t|
  1325. t.integer "count"
  1326. t.decimal "experience", :precision => 10, :scale => 0
  1327. t.text "folio"
  1328. t.text "recomendations"
  1329. t.text "resume"
  1330. t.string "email"
  1331. t.datetime "created_at", :null => false
  1332. t.datetime "updated_at", :null => false
  1333. t.string "order_type"
  1334. end
  1335.  
  1336. create_table "widget_sberbank_jobs", :force => true do |t|
  1337. t.string "title"
  1338. t.text "descr"
  1339. t.text "manager"
  1340. t.text "contact"
  1341. t.string "link"
  1342. t.integer "weight"
  1343. t.datetime "created_at", :null => false
  1344. t.datetime "updated_at", :null => false
  1345. end
  1346.  
  1347. create_table "windows_app_authors", :force => true do |t|
  1348. t.string "surname"
  1349. t.string "name"
  1350. t.string "email"
  1351. t.string "city"
  1352. t.string "position"
  1353. t.boolean "student"
  1354. t.integer "windows_app_id"
  1355. t.datetime "created_at", :null => false
  1356. t.datetime "updated_at", :null => false
  1357. end
  1358.  
  1359. create_table "windows_apps", :force => true do |t|
  1360. t.string "name_app"
  1361. t.integer "category"
  1362. t.string "address"
  1363. t.string "link_demo"
  1364. t.string "address_win_phone"
  1365. t.boolean "azure"
  1366. t.datetime "created_at", :null => false
  1367. t.datetime "updated_at", :null => false
  1368. t.string "spam"
  1369. t.boolean "published"
  1370. end
  1371.  
  1372. create_table "with_the_support_widgets", :force => true do |t|
  1373. t.integer "company_id"
  1374. t.datetime "created_at", :null => false
  1375. t.datetime "updated_at", :null => false
  1376. t.date "date_end"
  1377. t.date "date_start"
  1378. t.string "link"
  1379. t.integer "weight"
  1380. t.integer "browsings_count", :default => 0
  1381. end
  1382.  
  1383. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement