Class: Pasaporte::Models::AddAprovals
- Inherits:
-
V
- Object
- V
- Pasaporte::Models::AddAprovals
- Defined in:
- lib/pasaporte/models.rb
Class Method Summary collapse
Class Method Details
.down ⇒ Object
90 91 92 |
# File 'lib/pasaporte/models.rb', line 90 def self.down drop_table :pasaporte_approvals end |
.up ⇒ Object
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 |