search for: costcod

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

Did you mean: costco
2006 Jul 10
3
Problem with migrations
...; ''1234'', :name => ''Bob B'', :location => ''Office'', :department => ''07'', :company_code => ''003'') end def self.down Employee.delete_all end end 003 class CreateCostCodes < ActiveRecord::Migration def self.up create_table :cost_codes do |t| t.column :job, :integer t.column :code, :integer t.column :description, :string end end def self.down drop_table :cost_codes end end This is the migration that fails with an error of...
2006 Jul 12
6
Showing rows on a page
...er Studies [ 0 ] [ 0 ] [ 0 ] [ 0 ] [ 0 ] Documentation [ 0 ] [ 0 ] [ 8 ] [ 8 ] [ 4 ] Vacation [ 0 ] [ 0 ] [ 0 ] [ 0 ] [ 0 ] Client Relations [ 0 ] [ 0 ] [ 0 ] [ 0 ] [ 4 ] And a second question are my relations correct? Employee has_many Timesheets Timesheet belongs_to Employee Timesheet has_many CostCodes * (Should this be a has_one instead of many?) CostCode belongs_to Timesheet Thanks for any help or suggestions. Bob -- Posted via http://www.ruby-forum.com/.