Class: ModSpox::Migrations::PersistentSigs

Inherits:
Sequel::Migration
  • Object
show all
Defined in:
lib/mod_spox/migrations/002_persistent_sigs.rb

Instance Method Summary collapse

Instance Method Details

#downObject



9
10
11
# File 'lib/mod_spox/migrations/002_persistent_sigs.rb', line 9

def down
    Database.db.drop_column :signatures, :enabled
end

#upObject



5
6
7
# File 'lib/mod_spox/migrations/002_persistent_sigs.rb', line 5

def up
    Database.db.add_column :signatures, :enabled, :boolean, :null => false, :default => true
end