aboutsummaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20140824191444_create_widget_votes.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/db/migrate/20140824191444_create_widget_votes.rb b/db/migrate/20140824191444_create_widget_votes.rb
new file mode 100644
index 000000000..0a7b4856a
--- /dev/null
+++ b/db/migrate/20140824191444_create_widget_votes.rb
@@ -0,0 +1,11 @@
+class CreateWidgetVotes < ActiveRecord::Migration
+ def change
+ create_table :widget_votes do |t|
+ t.string :cookie
+ t.belongs_to :info_request, :null => false
+
+ t.timestamps
+ end
+ add_index :widget_votes, :info_request_id
+ end
+end