镜像自地址
https://github.com/redmine/redmine.git
已同步 2024-07-29 08:17:16 +02:00
![Jean-Philippe Lang](/assets/img/avatar_default.png)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@454 e93f8b46-1217-0410-a6f0-8f06a7374b81
14 行
337 B
Ruby
14 行
337 B
Ruby
class CreateWatchers < ActiveRecord::Migration
|
|
def self.up
|
|
create_table :watchers do |t|
|
|
t.column :watchable_type, :string, :default => "", :null => false
|
|
t.column :watchable_id, :integer, :default => 0, :null => false
|
|
t.column :user_id, :integer
|
|
end
|
|
end
|
|
|
|
def self.down
|
|
drop_table :watchers
|
|
end
|
|
end
|