From 18255881ca6199af20fa516305de06a89e057fa7 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 21 Apr 2007 12:09:07 +0000 Subject: Added create_watchers migration git-svn-id: http://redmine.rubyforge.org/svn/trunk@454 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- db/migrate/039_create_watchers.rb | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 db/migrate/039_create_watchers.rb (limited to 'db/migrate/039_create_watchers.rb') 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 -- cgit v1.2.3