Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

db/development_structure.sql missing constraints

#2016

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)

Reported by Greg Donald · February 19th, 2009 @ 03:52 PM

State: stale
Milestone: 2.x
Assigned to: nobody
Importance: none

Activity

  1. CancelProfileIsBroken
    CancelProfileIsBroken
    • State changed from new to incomplete

    Please submit a patch if you have concrete ideas on making this work.

    April 22nd, 2009 @ 10:14 PM

  2. CancelProfileIsBroken
    CancelProfileIsBroken
    • Tag changed from constraints, oracle to bugmash, constraints, oracle

    August 6th, 2009 @ 02:07 PM

  3. Rizwan Reza
    Rizwan Reza
    • State changed from incomplete to stale

    January 20th, 2010 @ 10:50 AM