Sign In/My Account | View Cart  

advertisement

AddThis Social Bookmark Button

Article:
  Cookin' with Ruby on Rails - May
Subject:   Migration Error on Linux
Date:   2007-07-29 03:00:52
From:   Geldart
Response to: Migration Error on Linux

Bill:


Exactly the same problem here (Ubuntu 7.04, Ruby 1.8.5, Rails 1.2.1). Fix needed seems to be two things:


  • "recipes" not "Recipes"

  • :string no "string"


    • i.e.:

      class AddContributorName < ActiveRecord::Migration
      def self.up
      add_column("recipes", "contributor_name", :string, :default => "Unknown")
      end


      def self.down
      remove_column("recipes", "contributor_name")
      end
      end