Class: Pasaporte::Models::AddAprovals

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

Class Method Summary collapse

Class Method Details

.downObject



90
91
92
# File 'lib/pasaporte/models.rb', line 90

def self.down
  drop_table :pasaporte_approvals
end

.upObject



82
83
84
85
86
87
88
# File 'lib/pasaporte/models.rb', line 82

def self.up
  create_table :pasaporte_approvals do | t |
    t.column :profile_id, :integer, :null => false
    t.column :trust_root, :string, :null => false
  end
  add_index(:pasaporte_approvals, [:profile_id, :trust_root], :unique)
end