Class: CreateBackupTables
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateBackupTables
- Defined in:
- lib/generators/backup/templates/create_backup_tables.rb
Class Method Summary collapse
Class Method Details
.down ⇒ Object
15 16 17 |
# File 'lib/generators/backup/templates/create_backup_tables.rb', line 15 def self.down drop_table :backup end |
.up ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 13 |
# File 'lib/generators/backup/templates/create_backup_tables.rb', line 2 def self.up create_table :backup do |t| t.string :trigger t.string :adapter t.string :filename t.string :md5sum t.string :path t.string :bucket t.string :type t. end end |