Class: CreateMkconfigData

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/generators/mkconfig/templates/migrations/create_mkconfig_data.rb

Instance Method Summary collapse

Instance Method Details

#changeObject



2
3
4
5
6
7
8
9
10
11
# File 'lib/generators/mkconfig/templates/migrations/create_mkconfig_data.rb', line 2

def change
  create_table :mkconfig_data do |t|
    t.string :path
    t.string :value

    t.timestamps
  end

add_index :mkconfig_data, :path, unique: true
end