Class: DatabasePatcher::PatchEntity::File
Instance Method Summary
collapse
#accepted_extensions, #execute_file, #extract_comments, factory, #get_comment, #initialize, #md5, #patch_record, #raise_unknown_extension_for, #register_this_patch, #timestamp, #uniq_indentifier, #unregister_this_patch
Instance Method Details
20
21
22
|
# File 'lib/database_patcher/patch_entity/file.rb', line 20
def
(@path)
end
|
#down(connection) ⇒ Object
8
9
10
|
# File 'lib/database_patcher/patch_entity/file.rb', line 8
def down(connection)
unregister_this_patch(connection)
end
|
#md5_down ⇒ Object
12
13
14
|
# File 'lib/database_patcher/patch_entity/file.rb', line 12
def md5_down
''
end
|
#md5_up ⇒ Object
16
17
18
|
# File 'lib/database_patcher/patch_entity/file.rb', line 16
def md5_up
md5(::File.read(@path))
end
|
#up(connection) ⇒ Object
3
4
5
6
|
# File 'lib/database_patcher/patch_entity/file.rb', line 3
def up(connection)
execute_file(connection, @path)
register_this_patch(connection)
end
|