Auto-Advisor/autoadvisor — pull request #20 by duane (2013-03-15 21:11:55+00:00)
Title: Initial models

Generated initial models for our framework. It's very basic, mostly so that people can begin to play around with ActiveRecord and so frontend people can start working on the interface.

A few things to note: First, there are no requirements, I'll work on that on monday (I have it designed in my head, but it's a lot of coding). Second, things are currently very insecure: anyone has complete access to parts of the database, notably the Major and Section table exposed in routing. This is both because it grants requests it shouldn't and because [mass assignment](http://guides.rubyonrails.org/security.html#mass-assignment) is enabled for virtually everything.

Finally, now that the schema actually exists, I'd like to make some changes: specifically, I'd like a "courses" table that groups sections together; these courses are how requirements and credits will reference people. It also makes more sense logically.

If you want to preserve your existing database, run `rake db:migrate`. If you want a fresh database, delete them from the `db/` directory and run `rake db:setup`, which will run a migration and seed the database with (novel) data. On a related note, you may want to look at `db/seeds.rb` for an example of how to interact with models (I don't understand it completely, so I may be doing some things poorly, but it's enough to get the gist).