2011-02-17 84 views
1

我在heroku上部署了一个ruby on rails应用程序。在localhost一切都很顺利,但运行Heroku“Globalize3”迁移失败

Heroku的耙分贝:迁移

运行在Heroku迁移我的迁移失败,此错误:

rake aborted! An error has occurred, this and all later migrations canceled:

PGError: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE TABLE "product_translations" ("id" serial primary key, "product_id" integer, "locale" character varying(255), "description" text, "created_at" timestamp, "updated_at" timestamp)

(See full trace by running task with --trace)

我的迁移是建立如下:

class CreateProducts < ActiveRecord::Migration 
    def self.up 
    create_table :products do |t| 
     t.string :image_path 
     t.text :description 
     t.timestamps 
    end 
    Product.create_translation_table! :description => :text 
    end 

    def self.down 
    drop_table :products 
    Product.drop_translation_table! 
    end 
end 

看来用于为globalize3(Product.create_translation_table!方法)创建表的查询失败。

任何想法?

在此先感谢

回答

1

They是说,这是因为创业板的错误。

gem 'globalize3', :path => 'vendor/plugins/globalize3'