class CreateOptions
Public Instance Methods
change()
click to toggle source
# 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