aboutsummaryrefslogtreecommitdiffstats
path: root/db/migrate/20120910153022_create_request_classifications.rb
diff options
context:
space:
mode:
authorRobin Houston <robin.houston@gmail.com>2012-09-13 14:50:59 +0100
committerRobin Houston <robin.houston@gmail.com>2012-09-13 14:50:59 +0100
commit1e2b6a8acf65f48edb1e03f4f024db9644765897 (patch)
treed8b87e874e383fcac83e29cf05673606c946fc4e /db/migrate/20120910153022_create_request_classifications.rb
parentbd94b0390fcfba53bee7d546227e94e860f37c17 (diff)
parent6d3d9d9846fa905e606f0a2aa6f1ec32122f4850 (diff)
Merge branch 'wdtk' of git.mysociety.org:/data/git/public/alaveteli into wdtk
Diffstat (limited to 'db/migrate/20120910153022_create_request_classifications.rb')
-rw-r--r--db/migrate/20120910153022_create_request_classifications.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/db/migrate/20120910153022_create_request_classifications.rb b/db/migrate/20120910153022_create_request_classifications.rb
new file mode 100644
index 000000000..7c6270c9e
--- /dev/null
+++ b/db/migrate/20120910153022_create_request_classifications.rb
@@ -0,0 +1,14 @@
+class CreateRequestClassifications < ActiveRecord::Migration
+ def self.up
+ create_table :request_classifications do |t|
+ t.integer :user_id
+ t.integer :info_request_event_id
+ t.timestamps
+ end
+ add_index :request_classifications, :user_id
+ end
+
+ def self.down
+ drop_table :request_classifications
+ end
+end