Я только начал работать над учебными пособиями по Rails 3, чтобы научиться немного знакомиться с фреймворком, но у меня возникают проблемы с генерацией schema.rb Моя операционная система - Windows 7 x64, Ruby 1.9.2, MySQL2 gem 0.2.6, Rails 3.0.3.
У меня создано две миграции, одна для моих списков:
class CreateLists < ActiveRecord::Migration
def self.up
create_table :lists do |t|
t.string :name
t.text :description
t.timestamps
end
end
def self.down
drop_table :lists
end
end
и один для моего списка предметов:
class CreateItems < ActiveRecord::Migration
def self.up
create_table :items do |t|
t.string :name
t.string :type
t.boolean :completed
t.references :list
t.timestamps
end
end
def self.down
drop_table :items
end
end
Rake успешно мигрирует и приложение работает как положено, но schema.rb показывает только:
ActiveRecord::Schema.define(:version => 20101126074332) do
# Could not dump table "items" because of following ArgumentError
# invalid date
# Could not dump table "lists" because of following ArgumentError
# invalid date
Кто-нибудь более опытный с Rails, который мог бы дать совет о том, что может быть причиной проблемы? Гуглить ничего не получилось.