search for: categorytranslations

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

2006 Jul 07
0
has_many relation handling
...uages do |t| t.column :name, :string, :limit => 3 t.column :title, :string, :limit => 30 end create_table :categories do |t| t.column :category_id, :integer (3.) t.column :created_at, :timestamp t.column :updated_at, :timestamp end create_table :categorytranslations, :id => false do |t| t.column :category_id, :integer t.column :language_id, :integer t.column :name, :string, :limit => 60 t.column :description, :string, :limit => 120 end My models: class Category < ActiveRecord::Base has_one :category (3.) has_many...