I created a ruby ββscript / generate model Article model (simple enuff)
Here is the create_articles.rb migration file:
def self.up create_table :articles do |t| t.column :user_id, :integer t.column :title, :string t.column :synopsis, :text, :limit => 1000 t.column :body, :text, :limit => 20000 t.column :published, :boolean, :default => false t.column :created_at, :datetime t.column :updated_at, :datetime t.column :published_at, :datetime t.column :category_id, :integer end def self.down drop_table :articles end end
When I run the rake: db migrate command, I get the rake aborted error! Msgstr "Uninitialized CreateArticles constant."
Does anyone know why this error continues?
ruby-on-rails rake rails-migrations
featureBlend Jan 05 '09 at 13:53 2009-01-05 13:53
source share