Software Development |
Ruby on Rails
altered_beast Data Model
If you have a look at db/schema.rb you'll see there are 12 tables.
Some, but not all, of these tables correspond to Models. JawSpeak: First Steps in Rails, RESTful by Example, Part 1: Beast has a diagram of the model used in the original Beast. This is still fairly appropriate for altered_beast although it should now include a Site model.
Most of the tables are created by the auto_migrations plugin from the initial db/schema.rb file. These tables include:
There are only three normal migrations:
The first of these adds permalinks to three already existing tables: Forum, Topics and Users. The second only adds the brain_busters table for the brain_buster plugin. The third migration adds the three open_id_authentication tables.
The relations between Model, Table and Migrations are given in the following table.
|Model||Table||Table created by|