ミラー元
https://github.com/redmine/redmine.git
前回の同期 2024-07-27 20:19:39 +02:00
![Go MAEDA](/assets/img/avatar_default.png)
git-svn-id: http://svn.redmine.org/redmine/trunk@17997 e93f8b46-1217-0410-a6f0-8f06a7374b81
14 行
342 B
Ruby
14 行
342 B
Ruby
class CreateWatchers < ActiveRecord::Migration[4.2]
|
|
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
|