jipiboily / spree_multi_lingual

Spree multi-lingual is a plugin to make multi locale store with Spree possible
BSD 3-Clause "New" or "Revised" License
49 stars 56 forks source link

spree_asset_translations table not created #34

Closed ghost closed 11 years ago

ghost commented 11 years ago

there is an image decorator, but the spree_asset_translations table is not created ..

ActionView::Template::Error (Mysql2::Error: Table 'my_store_dev.spree_asset_translations' doesn't exist: SHOW FULL FIELDS FROM spree_asset_translations):

got it working by adding a new migration

class AddTranslationToAsset < ActiveRecord::Migration def up Spree::Asset.create_translation_table! :alt => :string end def down Spree::Asset.drop_translation_table! end
end

and a new decorator : module Spree Asset.class_eval do translates :alt end end

seems the image decorator is not anymore useful w latest Spree 1.3