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
Change active record management from ruby to sql #44
Comments
Or ... to stay using schema.rb, there are also a few ruby gems that can help with constraints in active record. Here are a few I found searching through the ruby toolbox
|
I was aware of foreigner but not the others. We would also need something to keep track of the triggers and trigger functions. Since the trigger functions are in PL/pgSQL and so aren't database-independent, it seemed like we might as well just dump the schema in SQL mode, though perhaps using the above-mentioned gems would make writing the migrations marginally easier. |
based on conversation with @robkooper, @gsrohde
looks at current dev database, makes a clone, loads to test database; if you have development.sql file it can start from there, otherwise goes back to production.sql |
Here is our current practice:
Note that the Unless you have remaining concerns that aren't addressed by this protocol, please close this issue. |
please close after |
From the "Schema dumping and you" in the ruby manual:
Since we are implementing database-level constraints, it appears that we need to change this setting from
:ruby
to:sql
. @gsrohde, does this sound correct? If so, can you please assign this feature to @phenolphtalein?I have updated the Constraints documentation to justify this move; in brief, Given that the Ruby web application is only one of the ways in which we use the database (e.g. we don't want to have to use the API with all of our R code ... or do we?), it seems reasonable to implement database-level constraints and features such as views.
The text was updated successfully, but these errors were encountered: