Korzystanie z generatorów Active Record po instalacji Mongoid?
Używam MongoDB poprzez integrację Mongoid, a także ActiveRecord w projekcie. Chciałbym wygenerować migracje dla active record, a Mongoid jest domyślny podczas uruchamiania.
rails g migration
Jakieś pomysły jak określić AR jako mój domyślny generator dla migracji, modeli itp?
Dzięki! 65
Author: Allyl Isocyanate, 2011-06-16
2 answers
rails g active_record:migration
104
Author: Allyl Isocyanate,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/doraprojects.net/template/agent.layouts/content.php on line 54
2012-06-13 13:01:53
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/doraprojects.net/template/agent.layouts/content.php on line 54
2012-06-13 13:01:53
Możesz skonfigurować, aby używać generatorów ActiveRecord w konfiguracji / aplikacji.rb
config.generators do |g|
g.orm :active_record
end
75
Author: dima Ti,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/doraprojects.net/template/agent.layouts/content.php on line 54
2011-07-28 12:48:10
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/doraprojects.net/template/agent.layouts/content.php on line 54
2011-07-28 12:48:10