spegling av
https://github.com/redmine/redmine.git
synced 2024-08-25 17:55:20 +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 rader
337 B
Ruby
14 rader
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
|