This project is archived and is in readonly mode.

#2016 ✓stale
Greg Donald

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

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>

Pages