我正在将refinerycms集成到现有应用程序中,并遵循http://www.refinerycms.com/guides/with-an-existing-rails-app
中提到的步骤我的gemfile
包含以下内容:
gem 'refinerycms', github: 'refinery/refinerycms', branch: 'master'
gem 'refinerycms-i18n', github: 'refinery/refinerycms-i18n', branch: 'master'
添加gem' refinerycms','〜> 3.0.0' to gemfile也会生成相同的错误:
错误==> Mysql2 ::错误:表' refinery_base_model_translations'已存在:CREATE TABLE refinery_base_model_translations(id int(11)auto_increment PRIMARY KEY,refinery_base_model_id int(11)NOT NULL,locale varchar(255)NOT NULL,created_at datetime NOT NULL,updated_at datetime NOT NULL)ENGINE = InnoDB **
答案 0 :(得分:1)
@Shefalee Chaudhary在迁移中评论这些行将解决您的问题:
#::Refinery::PagePart.create_translation_table!({
# :body => :text
#})
#::Refinery::Page.create_translation_table!({
# :title => :string,
# :custom_slug => :string,
# :menu_title => :string,
# :slug => :string
# })