This project is archived and is in readonly mode.
db/development_structure.sql missing constraints
Reported by Greg Donald | February 19th, 2009 @ 03:52 PM | in 2.x
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)
Comments and changes to this ticket
-
CancelProfileIsBroken April 22nd, 2009 @ 10:14 PM
- State changed from new to incomplete
Please submit a patch if you have concrete ideas on making this work.
-
CancelProfileIsBroken August 6th, 2009 @ 02:07 PM
- Tag changed from constraints, oracle to bugmash, constraints, oracle
-
Rizwan Reza January 20th, 2010 @ 10:50 AM
- State changed from incomplete to stale
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>