Class: AddForFunToRaces

Inherits:
Sequel::Migration show all
Defined in:
lib/migrations/006_add_for_fun_to_races.rb

Instance Method Summary collapse

Methods inherited from Sequel::Migration

apply, descendants, inherited, #initialize, #method_missing

Constructor Details

This class inherits a constructor from Sequel::Migration

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Sequel::Migration

Instance Method Details

#downObject


8
9
10
11
12
# File 'lib/migrations/006_add_for_fun_to_races.rb', line 8

def down
  alter_table(:races) do
    drop_column :for_fun
  end
end

#upObject


2
3
4
5
6
# File 'lib/migrations/006_add_for_fun_to_races.rb', line 2

def up
  alter_table(:races) do
    add_column :for_fun, TrueClass, :default => false, :null => false
  end
end