aboutsummaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
Diffstat (limited to 'db')
-rw-r--r--db/migrate/033_add_prominence.rb9
-rw-r--r--db/schema.rb17
2 files changed, 18 insertions, 8 deletions
diff --git a/db/migrate/033_add_prominence.rb b/db/migrate/033_add_prominence.rb
new file mode 100644
index 000000000..15d548f37
--- /dev/null
+++ b/db/migrate/033_add_prominence.rb
@@ -0,0 +1,9 @@
+class AddProminence < ActiveRecord::Migration
+ def self.up
+ add_column :info_requests, :prominence, :string, :null => false, :default => 'normal'
+ end
+
+ def self.down
+ remove_column :info_requests, :prominence
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index c01221291..ff159b5c4 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -9,7 +9,7 @@
#
# It's strongly recommended to check this file into your version control system.
-ActiveRecord::Schema.define(:version => 32) do
+ActiveRecord::Schema.define(:version => 33) do
create_table "incoming_messages", :force => true do |t|
t.integer "info_request_id", :null => false
@@ -28,13 +28,14 @@ ActiveRecord::Schema.define(:version => 32) do
end
create_table "info_requests", :force => true do |t|
- t.text "title", :null => false
- t.integer "user_id", :null => false
- t.integer "public_body_id", :null => false
- t.datetime "created_at", :null => false
- t.datetime "updated_at", :null => false
- t.string "described_state", :null => false
- t.boolean "awaiting_description", :default => false, :null => false
+ t.text "title", :null => false
+ t.integer "user_id", :null => false
+ t.integer "public_body_id", :null => false
+ t.datetime "created_at", :null => false
+ t.datetime "updated_at", :null => false
+ t.string "described_state", :null => false
+ t.boolean "awaiting_description", :default => false, :null => false
+ t.string "prominence", :default => "normal", :null => false
end
add_index "info_requests", ["created_at"], :name => "index_info_requests_on_created_at"