To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / db / migrate / 039_create_watchers.rb @ 441:cbce1fd3b1b7
History | View | Annotate | Download (337 Bytes)
| 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
|