diff options
author | Joachim Filip Ignacy Bartosik <jbartosik@gmail.com> | 2011-07-21 18:42:07 +0200 |
---|---|---|
committer | Joachim Filip Ignacy Bartosik <jbartosik@gmail.com> | 2011-07-26 12:09:47 +0200 |
commit | 1a15725aad91a3b16928cb43f608379d6ade13e3 (patch) | |
tree | 1ffb09a673a40c47fae264f517cae57ab5fb658e /site/db | |
parent | Add summary field (diff) | |
download | council-webapp-1a15725aad91a3b16928cb43f608379d6ade13e3.tar.gz council-webapp-1a15725aad91a3b16928cb43f608379d6ade13e3.tar.bz2 council-webapp-1a15725aad91a3b16928cb43f608379d6ade13e3.zip |
Council members can approve summaries
Regular users can view summary only after 4 council members approve it.
When someone changes summary all approvals for that summary are deleted.
Diffstat (limited to 'site/db')
-rw-r--r-- | site/db/schema.rb | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/site/db/schema.rb b/site/db/schema.rb index a6232e1..48027f5 100644 --- a/site/db/schema.rb +++ b/site/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended to check this file into your version control system. -ActiveRecord::Schema.define(:version => 20110721103758) do +ActiveRecord::Schema.define(:version => 20110721195225) do create_table "agenda_items", :force => true do |t| t.string "title", :default => "", :null => false @@ -41,6 +41,16 @@ ActiveRecord::Schema.define(:version => 20110721103758) do add_index "agendas", ["state"], :name => "index_agendas_on_state" + create_table "approvals", :force => true do |t| + t.datetime "created_at" + t.datetime "updated_at" + t.integer "user_id", :null => false + t.integer "agenda_id", :null => false + end + + add_index "approvals", ["agenda_id"], :name => "index_approvals_on_agenda_id" + add_index "approvals", ["user_id"], :name => "index_approvals_on_user_id" + create_table "delayed_jobs", :force => true do |t| t.integer "priority", :default => 0 t.integer "attempts", :default => 0 |