To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / db / migrate / 039_create_watchers.rb @ 912:5e80956cc792

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