aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoachim Filip Ignacy Bartosik <jbartosik@gmail.com>2011-05-13 18:50:23 +0200
committerJoachim Filip Ignacy Bartosik <jbartosik@gmail.com>2011-05-24 18:55:39 +0200
commita0925ae845600d7e07a672b2a1a62d749154fabc (patch)
treee3516e75b60116a7f7fa4aa7ee5e77f5a38e0f9b /site/db/schema.rb
parentUse fuubar (diff)
downloadcouncil-webapp-a0925ae845600d7e07a672b2a1a62d749154fabc.tar.gz
council-webapp-a0925ae845600d7e07a672b2a1a62d749154fabc.tar.bz2
council-webapp-a0925ae845600d7e07a672b2a1a62d749154fabc.zip
Agenda lifecycle (semi-automatically managed)
When starting application create new (open) agenda if there are 0 non-archival agendas. When archiving agenda create a new open agenda. Agenda is valid only if it's archival agenda or if there are no other non-archival agendas.
Diffstat (limited to 'site/db/schema.rb')
-rw-r--r--site/db/schema.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/site/db/schema.rb b/site/db/schema.rb
index 812d821..b308e67 100644
--- a/site/db/schema.rb
+++ b/site/db/schema.rb
@@ -10,14 +10,18 @@
#
# It's strongly recommended to check this file into your version control system.
-ActiveRecord::Schema.define(:version => 20110520150527) do
+ActiveRecord::Schema.define(:version => 20110523175740) do
create_table "agendas", :force => true do |t|
t.datetime "meeting_time"
t.datetime "created_at"
t.datetime "updated_at"
+ t.string "state", :default => "open"
+ t.datetime "key_timestamp"
end
+ add_index "agendas", ["state"], :name => "index_agendas_on_state"
+
create_table "users", :force => true do |t|
t.string "salt", :limit => 40
t.string "remember_token"