Ruby on rails 正在使用traco,但该列未在数据库中转换

Ruby on rails 正在使用traco,但该列未在数据库中转换,ruby-on-rails,traco,Ruby On Rails,Traco,我的rails应用程序使用translateable_column将config/locales/he-IL.yml内容加载到表列中自己的列中 rails应用程序是用3.0.19和ruby 1.8.7构建的,我安装了traco gem“traco”,“~>1.0.0” 我不确定哪个traco版本与1.8.7兼容。但我知道activerecord>3很好 create_table "statements", :force => true do |t| t.text "na

我的rails应用程序使用translateable_column将config/locales/he-IL.yml内容加载到表列中自己的列中

rails应用程序是用3.0.19和ruby 1.8.7构建的,我安装了traco gem“traco”,“~>1.0.0” 我不确定哪个traco版本与1.8.7兼容。但我知道activerecord>3很好

  create_table "statements", :force => true do |t|
    t.text     "name_en_us"
    t.integer  "study_phase_id"
    t.datetime "created_at"
    t.datetime "updated_at"
    t.integer  "position",                      :default => 1, :null => false
    t.text     "name_zh_cn"
    t.text     "name_de_de"
    t.text     "name_ja_jp"
    t.text     "name_es_es",     :limit => 255
    t.text     "name_it_it",     :limit => 255
    t.text     "name_ar_iq",     :limit => 255
    t.text     "name_et_ee",     :limit => 255
    t.text     "name_da_dk",     :limit => 255
    t.text     "name_en_ca"
    t.text     "name_en_au"
    t.text     "name_en_gb"
    t.string   "name_nl_nl"
    t.text     "name_en_sg"
    t.text     "name_sk_sk",     :limit => 255
    t.text     "name_cs_cz",     :limit => 255
    t.text     "name_ru_ru",     :limit => 255
    t.string   "name_ko_kr"
    t.string   "name_pl_pl"
    t.text     "name_fr_fr"
    t.string   "name_he_il"
  end
config/locales中的he-IL.yml文件中有很多语句

在我的statement.rb模型中

translates :name

我不完全理解这个问题。如果在终端中运行此操作,会发生什么<代码>s=语句.new;I18n.locale=“en-US”;s、 name=“我的美国名字”;放置s.name,但我不确定任何版本的Traco是否能与Ruby 1.8兼容。我们在commit 9cf14177aa13e6c46f618f61c5b350b3dda6627d中放弃了对Ruby 1.8的支持,因为在主动支持方面存在一些依赖性问题,这可能是由他们的新版本引入的,我们不想花时间支持生命结束的Ruby。由于这是一个依赖项错误,我担心您可能会在任何版本的Traco中看到它。@HenrikN感谢3年前使用可翻译_列构建的应用程序,我已切换回它。它是用1.8.7构建的。很抱歉我帮不了你更多,但很高兴你解决了它@HenrikN我最后运行了很多sql查询来将数据插入表的列中