summaryrefslogtreecommitdiffstats
path: root/db/migrate/013_create_queries.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2006-12-16 13:37:32 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2006-12-16 13:37:32 +0000
commit2b0142580f9c5e0b9dc54d1e338e355b235bb844 (patch)
treee5128fc007811c52a15391ee773eaae3fdbecdae /db/migrate/013_create_queries.rb
parent236c735d08c097cfe1a7e5f5c52a9dd6711250aa (diff)
downloadredmine-2b0142580f9c5e0b9dc54d1e338e355b235bb844.tar.gz
redmine-2b0142580f9c5e0b9dc54d1e338e355b235bb844.zip
"queries" branch merged
git-svn-id: http://redmine.rubyforge.org/svn/trunk@95 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'db/migrate/013_create_queries.rb')
-rw-r--r--db/migrate/013_create_queries.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/db/migrate/013_create_queries.rb b/db/migrate/013_create_queries.rb
new file mode 100644
index 000000000..e0e8c90c0
--- /dev/null
+++ b/db/migrate/013_create_queries.rb
@@ -0,0 +1,15 @@
+class CreateQueries < ActiveRecord::Migration
+ def self.up
+ create_table :queries, :force => true do |t|
+ t.column "project_id", :integer
+ t.column "name", :string, :default => "", :null => false
+ t.column "filters", :text
+ t.column "user_id", :integer, :default => 0, :null => false
+ t.column "is_public", :boolean, :default => false, :null => false
+ end
+ end
+
+ def self.down
+ drop_table :queries
+ end
+end