blob: 2a5eee5b9d3f40d5d775501ba7ef99c1ad06133e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
# frozen_string_literal: false
class CreateQueries < ActiveRecord::Migration[4.2]
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
|