Class: AddForFunToRaces
- Inherits:
-
Sequel::Migration
- Object
- Sequel::Migration
- AddForFunToRaces
- Defined in:
- lib/migrations/006_add_for_fun_to_races.rb
Instance Method Summary collapse
Instance Method Details
#down ⇒ Object
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 |
#up ⇒ Object
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 |