Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Can't install: migration does not work #1

Open
danielres opened this Issue · 0 comments

1 participant

@danielres

Hello,

I'm trying to install i18n_backend_sequel under rails 3.0.3, but I have a problem with the migration.

I generated a new migration (command: rails g migration i18n_backend) then I pasted your code inside the migration file:

class I18nBackend < ActiveRecord::Migration
  def self.up
    create_table :i18n_translations do |t|
      String :locale, :null => false
      String :key, :null => false
      String :value, :text => true
      String :interpolations, :text => true
      TrueClass :is_proc, :null => false, :default => false
      primary_key [:locale, :key]
    end    
  end

  def self.down
    drop_table :i18n_translations
  end
end

But when i run the migration with rake db:migrate, I got an error:
wrong number of arguments(2 for 1)
and if I replace occurences of
String ...
by
t.string ...
it fixes it, but then I have another error:
undefined method `TrueClass' for #ActiveRecord::ConnectionAdapters::SQLite3Adapter:0xae65460>

Obviously, I'm missing something here ?

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.