aboutsummaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
Diffstat (limited to 'db')
-rw-r--r--db/migrate/057_add_law_used.rb9
-rw-r--r--db/schema.rb3
2 files changed, 11 insertions, 1 deletions
diff --git a/db/migrate/057_add_law_used.rb b/db/migrate/057_add_law_used.rb
new file mode 100644
index 000000000..ec4efd0bc
--- /dev/null
+++ b/db/migrate/057_add_law_used.rb
@@ -0,0 +1,9 @@
+class AddLawUsed < ActiveRecord::Migration
+ def self.up
+ add_column :info_requests, :law_used, :string, :null => false, :default => 'foi'
+ end
+
+ def self.down
+ remove_column :info_requests, :law_used
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index 1bcf94dfa..66758a69c 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 => 56) do
+ActiveRecord::Schema.define(:version => 57) do
create_table "acts_as_xapian_jobs", :force => true do |t|
t.string "model", :null => false
@@ -50,6 +50,7 @@ ActiveRecord::Schema.define(:version => 56) do
t.string "prominence", :default => "normal", :null => false
t.text "url_title", :null => false
t.boolean "stop_new_responses", :default => false, :null => false
+ t.string "law_used", :default => "foi", :null => false
end
add_index "info_requests", ["created_at"], :name => "index_info_requests_on_created_at"