search for: createcategori

Displaying 4 results from an estimated 4 matches for "createcategori".

Did you mean: createcategories
2008 Nov 14
3
migration with data
Hi I am using postgres and have two migration files like 001_create_categories.rb as class CreateCategories < ActiveRecord::Migration def self.up create_table :categories do |t| t.column :name, :string, :limit=>80 end end def self.down drop_table :categories end end and 002_populate_categories.rb class PopulateCategories < ActiveRecord::Migration execute '&...
2006 Aug 08
0
Error is: Couldn''t find Producttype without an ID
...s: class CreateProducttypes < ActiveRecord::Migration def self.up create_table :producttypes do |t| t.column :name, :string t.column :created_at, :datetime t.column :updated_on, :datetime end end def self.down drop_table :producttypes end End class CreateCategories < ActiveRecord::Migration def self.up create_table :categories do |t| t.column :name, :string t.column :prodtype_id, :int t.column :description, :string t.column :created_at, :datetime t.column :updated_on, :datetime end end def self.down drop_t...
2006 Sep 05
0
rake craziness with Migrate as a dependency
...-> 0.1910s == AddDreamToUser: migrated (0.1910s) ========================================= == CreateFaqs: migrating ====================================================== -- create_table(:faqs) -> 0.0800s == CreateFaqs: migrated (0.0800s) ============================================= == CreateCategories: migrating ================================================ -- create_table(:categories) -> 0.0700s == CreateCategories: migrated (0.0700s) ======================================= == CreateBlogComments: migrating ============================================== -- create_table(:blog_comments...
2011 Nov 02
4
undefined method `updated_at' for #<Classified:0x686c5e4>
HEllo, I have the following problem with rails, I am new in this...is there anyone who explain to me what´s happens? Thanks See below: NoMethodError in Classified#show Showing app/views/classified/show.rhtml where line #17 raised: undefined method `updated_at'' for #<Classified:0x686c5e4> Extracted source (around line #17): 14: 15: <strong>Date Posted:</strong>