Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

db/schema.rb is not updated to contain extensions #2

Open
dlee opened this issue Aug 22, 2012 · 3 comments
Open

db/schema.rb is not updated to contain extensions #2

dlee opened this issue Aug 22, 2012 · 3 comments

Comments

@dlee
Copy link

dlee commented Aug 22, 2012

When you run migrations with special constraints and references, the constraints and references are not reflected in db/schema.rb.

@dark-panda
Copy link
Owner

This is sort of a duplicate of issue #1. We haven't really had the need to use db/schema.rb because we find ourselves using the :sql setting for config.active_record.schema_format instead. See the explanation in issue #1 and see if that would suit your needs.

@dlee
Copy link
Author

dlee commented Aug 29, 2012

@dark-panda Thanks, that does help. It would be great if the db/schema.rb generation would error out instead of silently creating a bogus file.

@dark-panda
Copy link
Owner

I'll take a look in to it. At the very least I'll add a note to the README that mentions this little trick and it'll go into the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants