Class: CreateRacers

Inherits:
Sequel::Migration show all
Defined in:
lib/migrations/002_create_racers.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


10
11
12
# File 'lib/migrations/002_create_racers.rb', line 10

def down
  drop_table(:racers)
end

#upObject


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