-
Notifications
You must be signed in to change notification settings - Fork 342
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
schema.rb not representative of migrations? #342
Comments
The schema is maintained in structure.sql, not schema.rb, because some migrations can't be recreated by Rails. To verify this, what you could have done was go to any of our recent migrations, click on the commit next to it, and then look at the changed files. You would have seen that Please try to keep GitHub issues to legitimate bugs. I'm going to create a Google group so that people can help each other out and answer questions like these because it's not scalable for me to respond to everything since I'm only working on Ohana in my spare time. |
I really appreciate your responses and thanks for the clarification. Might
be good to capture in a wiki page which I will start if can gather enough
info. Would you also prefer to use a google group for feature suggestions?
What purpose does schema.rb serve in that case?
|
I think feature suggestions can stay here. A Wiki sounds great if you want to get that started. I don't think |
In @pmackay's defense, |
Strange. I'm not sure why it was updated that one time. If you want to test that the installation instructions still work when you remove |
@monfresh it would be super helpful if you could post any pointers to reasons why you needed to use |
To test that the removal of
The technical reasons for using The Rails Guides are a great source of information, but sometimes you're not exactly sure which guide you want. In that case, there's always Google 😄 A search for "rails structure.sql" will most likely bring up the pertinent Rails Guide. |
@monfresh thanks for this! Re the Rails guides, I had looked up some general info. In reference to this:
I was wondering was what it specifically about the Ohana project that required using the |
When I'm trying to find my way around code that I'm not familiar with, I use a combination of GitHub's search, text editor search, and
You can then visit that commit on GitHub by adding the first few characters of that commit's SHA to the end of |
Our API documentation is also a good resource. The Search Locations section explains how full-text search works when you use the |
For more information on Postgres full-text search, here are some resources that helped me implement it (in no particular order): http://altoros.github.io/2013/implementing-and-improving-postgresql-fulltext-search/ Do you think the info in the past few comments is worth putting in a Wiki? |
Has
schema.rb
been updated to match all migrations? To take one example, this migration changehttps://github.com/codeforamerica/ohana-api/blob/master/db/migrate/20140929221750_add_fields_to_organization.rb
doesnt match with the definition of the organization table:
The text was updated successfully, but these errors were encountered: