ifunam/salva — Issue #130: Jobpositions bugs
Author: juarlex
Created: 2012-02-16 18:53:41+00:00
State: open

A ActiveRecord::StatementInvalid occurred in jobpositions#create:

PGError: ERROR: null value in column "start_date" violates not-null constraint
: INSERT INTO "jobpositions" ("contracttype_id", "created_on", "descr", "end_date", "institution_id", "jobpositioncategory_id", "modified_by_id", "place_of_origin", "registered_by_id", "start_date", "updated_on", "user_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id"
activerecord (3.1.3) lib/active_record/connection_adapters/postgresql_adapter.rb:1034:in `get_last_result'

-------------------------------
Request:
-------------------------------

* URL : https://salva.fisica.unam.mx/jobpositions
* IP address: 201.124.30.171
* Parameters: {"utf8"=>"✓", "authenticity_token"=>"9gGT4wgVSLSwx7xNgp6NdT5wEa4nnNEP0a72u9xqnPM=", "filter"=>{"jobpositiontype_id"=>""}, "jobposition"=>{"institution_id"=>"30", "start_date"=>"1959", "end_date"=>"", "user_adscription_attributes"=>{"adscription_id"=>"2", "descr"=>"Ayudante de Investigador M.T.", "id"=>"", "jobposition_id"=>""}}, "commit"=>"Guardar", "action"=>"create", "controller"=>"jobpositions"}
* Rails root: /home/deployer/apps/salva