search for: createcars

Displaying 1 result from an estimated 1 matches for "createcars".

Did you mean: createcall
2007 May 19
3
form question
Suppose I have the following models/migrations: class Car < ActiveRecord::Base belongs_to :manufacturer validates_presence_of :manufacturer validates_association :manufacturer end class CreateCars < ActiveRecord::Migration def self.up create_table cars do |t| t.column :name, :string t.column :manufacturer_id, :integer end end class Manufacturer < ActiveRecord::Base has_many :cars end class CreateManufacturers < ActiveRecord::Migration def self.up create_...