@@ -0,0 +1,13 | |||
|
1 | class CreateWatchers < ActiveRecord::Migration | |
|
2 | def self.up | |
|
3 | create_table :watchers do |t| | |
|
4 | t.column :watchable_type, :string, :default => "", :null => false | |
|
5 | t.column :watchable_id, :integer, :default => 0, :null => false | |
|
6 | t.column :user_id, :integer | |
|
7 | end | |
|
8 | end | |
|
9 | ||
|
10 | def self.down | |
|
11 | drop_table :watchers | |
|
12 | end | |
|
13 | end |
General Comments 0
You need to be logged in to leave comments.
Login now