rails g model Job name command:text success_count:integer failure_count:integer schedule
rails g model Build job_id:references exit_status:integer number:integer output:text started_at:timestamp finished_at:timestamp
Update Resource explanation for the change
rails g model JobDependency parent_id:integer child_id:integer
rails g model Subscription job_id:references type payload:blob
Silence i18n warning
Add association: job.children
Dont allow timestamp to be NULL
JobDependency needs no updated_at column
Fix DB references and add indices
rake db:migrate