You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

013_create_queries.rb 450B

123456789101112131415
  1. class CreateQueries < ActiveRecord::Migration[4.2]
  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. def self.down
  12. drop_table :queries
  13. end
  14. end