Class: CreateChipTypes
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateChipTypes
- Defined in:
- lib/db/migrate/006_create_chip_types.rb
Class Method Summary collapse
Class Method Details
.down ⇒ Object
8 9 10 |
# File 'lib/db/migrate/006_create_chip_types.rb', line 8 def self.down drop_table :chip_types end |
.up ⇒ Object
2 3 4 5 6 |
# File 'lib/db/migrate/006_create_chip_types.rb', line 2 def self.up create_table "chip_types", force: :cascade do |t| t.string "name", limit: 25, null: false end end |