Class: Buggy::Models::CreateBuggy

Inherits:
V
  • Object
show all
Defined in:
lib/buggy.rb

Class Method Summary collapse

Class Method Details

.downObject



42
43
44
# File 'lib/buggy.rb', line 42

def self.down
  drop_table :buggy_bugs
end

.upObject



27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# File 'lib/buggy.rb', line 27

def self.up
  create_table :buggy_bugs, :force => true do |t|
    t.column :priority, :string
    t.column :project, :string
    t.column :body, :text
    
    # 1 is true, 0 is false
    t.column :closed, :integer
  end
  
  create_table :buggy_annotations, :force => true do |t|
    t.column :body, :text
    t.column :bug_id, :integer
  end
end