Class: CreateSwdSettings
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateSwdSettings
- Defined in:
- lib/db/migrate/017_create_swd_settings.rb
Class Method Summary collapse
Class Method Details
.down ⇒ Object
16 17 18 |
# File 'lib/db/migrate/017_create_swd_settings.rb', line 16 def self.down drop_table :swd_settings end |
.up ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/db/migrate/017_create_swd_settings.rb', line 2 def self.up create_table "swd_settings", force: :cascade do |t| t.string "cpu_id_address", limit: 8 t.string "device_id_address", limit: 8 t.string "memory_size_address", limit: 8 t.string "memory_start_address", limit: 8 t.integer "chip_id", limit: 4, null: false end add_index "swd_settings", ["chip_id"], name: "index_swd_settings_on_chip_id", unique: true add_foreign_key "swd_settings", "chips" end |