I have a new rails engine and I want to use globalize3. I did this in my lib//engine.rb :
require 'globalize3'
module SimpleCms
class Engine < ::Rails::Engine
end
end
Now, I try to create a migration like this :
class CreatePages < ActiveRecord::Migration
def up
create_table :pages do |t|
t.string :path
t.timestamps
end
Page.create_translation_table! title: :string, body: :body
end
def down
drop_table :pages
Page.drop_translation_table!
end
end
And I have this error :
undefined method `create_translation_table!' for #<Class:0x00000001d5ca18>
I think the file 'lib/globalize/active_record/migration.rb' is not loaded.
Any solution?