Class: CreateConfigValues
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateConfigValues
- Defined in:
- lib/rails/generators/omniconf/install/templates/migrations/1_create_config_values.rb
Instance Method Summary collapse
Instance Method Details
#change ⇒ Object
2 3 4 5 6 7 8 |
# File 'lib/rails/generators/omniconf/install/templates/migrations/1_create_config_values.rb', line 2 def change create_table :config_values do |t| t.string :key, :null => false t.string :value, :null => false end add_index :config_values, :key, :unique => true end |