search for: designation_id

Displaying 2 results from an estimated 2 matches for "designation_id".

2006 Feb 23
4
MySQL Duplicate Key Error
...s CREATE TABLE `sdqualplanner`.`privileges` ( `id` int(10) unsigned NOT NULL auto_increment, `name` varchar(20) NOT NULL default '''', `description` varchar(100) NOT NULL default '''', `section_id` int(10) unsigned NOT NULL default ''0'', `designation_id` int(10) unsigned NOT NULL default ''0'', `department_id` int(10) unsigned NOT NULL default ''0'', `view` varchar(1) NOT NULL default ''1'', `create` varchar(1) NOT NULL default ''0'', `modify` varchar(1) NOT NULL default '...
2007 Aug 04
1
ActiveRecord gotcha with references?
I have this situation: class Employee < ActiveRecord::Base belongs_to :designation end class Designation < ActiveRecord::Base end I do the following at the irb console: Step 1: Find an employee >> emp = Employee.find 3 => #<Employee:0x35a7d34 @attributes={"designation_id"=>"3", "id"=>"3", "division_id"=>"4"}> Step 2: Save the designation in a variable des >> des = emp.designation => #<Designation:0x35a49b8 @attributes={"name"=>"Project Manager", "id"=&gt...