diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-04-21 12:09:07 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-04-21 12:09:07 +0000 |
commit | 18255881ca6199af20fa516305de06a89e057fa7 (patch) | |
tree | f498a1df4133718607e91e7517f36e16968e4e74 /db/migrate/039_create_watchers.rb | |
parent | 2fb84af3e91dc17aa0f84a8fa0e02cabe2ac712c (diff) | |
download | redmine-18255881ca6199af20fa516305de06a89e057fa7.tar.gz redmine-18255881ca6199af20fa516305de06a89e057fa7.zip |
Added create_watchers migration
git-svn-id: http://redmine.rubyforge.org/svn/trunk@454 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'db/migrate/039_create_watchers.rb')
-rw-r--r-- | db/migrate/039_create_watchers.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/db/migrate/039_create_watchers.rb b/db/migrate/039_create_watchers.rb new file mode 100644 index 000000000..9579e19a4 --- /dev/null +++ b/db/migrate/039_create_watchers.rb @@ -0,0 +1,13 @@ +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 |