To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / db / migrate / 013_create_queries.rb @ 1298:4f746d8966dd

History | View | Annotate | Download (445 Bytes)

1
class CreateQueries < ActiveRecord::Migration
2
  def self.up
3
    create_table :queries, :force => true do |t|
4
      t.column "project_id", :integer
5
      t.column "name", :string, :default => "", :null => false
6
      t.column "filters", :text
7
      t.column "user_id", :integer, :default => 0, :null => false
8
      t.column "is_public", :boolean, :default => false, :null => false
9
    end
10
  end
11

    
12
  def self.down
13
    drop_table :queries
14
  end
15
end