Не мога да стартирам rake db:migrate
на моя проект за релси. Получавам тази грешка:
/home/john/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.0.5/lib/active_record/connection_adapters/sqlite3_adapter.rb:27: [BUG] unknown type 0x22 (0xc given)
ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-linux]
...
# several lines of traceback here
...
[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html
[1] 2610 abort rake db:migrate
Опитах се да инсталирам rake=0.8.7, като настроих Gemfile на моя rails проект да използва rake=0.8.7, но все още получавам същата грешка „неизвестен тип“.
Файл за миграция:
class CreateProducts < ActiveRecord::Migration
def self.up
create_table :products do |t|
t.string :title
t.text :description
t.string :image_url
t.decimal :price, :precision => 8, :scale => 2
t.timestamps
end
end
def self.down
drop_table :products
end
end