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