Class: CreateRacers
- Inherits:
-
Sequel::Migration
- Object
- Sequel::Migration
- CreateRacers
- Defined in:
- lib/migrations/002_create_racers.rb
Instance Method Summary collapse
Instance Method Details
#down ⇒ Object
10 11 12 |
# File 'lib/migrations/002_create_racers.rb', line 10 def down drop_table(:racers) end |
#up ⇒ Object
2 3 4 5 6 7 8 |
# File 'lib/migrations/002_create_racers.rb', line 2 def up create_table :racers do primary_key :id String :name DateTime :created_at end end |