Class: EditTempFile
- Inherits:
-
Brant::Migration
- Object
- Brant::Migration
- EditTempFile
- Defined in:
- lib/pkg/migrate/edit_temp_file_20120213120974.rb
Class Method Summary collapse
Class Method Details
.down ⇒ Object
6 7 8 |
# File 'lib/pkg/migrate/edit_temp_file_20120213120974.rb', line 6 def self.down File.open('a.txt','w'){|f| f.write 'this is cool'} end |
.up ⇒ Object
2 3 4 |
# File 'lib/pkg/migrate/edit_temp_file_20120213120974.rb', line 2 def self.up File.open('a.txt','w'){|f| f.write 'replaced'} end |