I have lots of constraints in my migrations, for example:
cat db/migrate/002_create_users.rb |grep -i constraint
execute "alter table users add constraint pk_users primary key
(user_id)"
I am wanting those constraints to be present in my test db when
I run my tests. Presently they are not there.
rm db/development_structure.sql
cat config/environment.rb | grep schema_format
config.active_record.schema_format = :sql
rake db:migrate VERSION=0
rake db:migrate
rake
cat db/development_structure.sql | grep -i constraint
Nothing.
Here is my current setup:
cat config/environment.rb | grep 2.2.2
RAILS_GEM_VERSION = '2.2.2' unless defined?
RAILS_GEM_VERSION
ruby -v
ruby 1.8.7 (2008-08-11 patchlevel 72) [i486-linux]
gem list --local | grep oracle
activerecord-oracle_enhanced-adapter (1.1.9)
gem list --local| grep rails
rails (2.2.2)