Class: CreateMkconfigData
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateMkconfigData
- Defined in:
- lib/generators/mkconfig/templates/migrations/create_mkconfig_data.rb
Instance Method Summary collapse
Instance Method Details
#change ⇒ Object
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. end add_index :mkconfig_data, :path, unique: true end |