To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / .svn / pristine / 75 / 75522763ba10b170086f16465ddd780d56d8e212.svn-base @ 1297:0a574315af3e
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 |