Class: CreateOptions
- Inherits:
-
Object
- Object
- CreateOptions
- Defined in:
- lib/generators/simple_options/templates/migrations/create_options.rb
Instance Method Summary collapse
Instance Method Details
#change ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/generators/simple_options/templates/migrations/create_options.rb', line 3 def change create_table :options do |t| t.string :name, :null => false t.string :title, :null => false t.string :option_type, :null => true t.text :description, :null => true t.boolean :is_changed, :null => false, :default=>1 t.string :category, :null => true t.string :value, :null => true end add_index :options, :name, :unique => true end |