Class: CreateFeatureBoxSuggestions
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateFeatureBoxSuggestions
- Defined in:
- lib/generators/feature_box/templates/migrations/00_create_feature_box_suggestions.rb
Instance Method Summary collapse
Instance Method Details
#change ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/generators/feature_box/templates/migrations/00_create_feature_box_suggestions.rb', line 2 def change create_table :feature_box_suggestions do |t| t.string :title, :null => false t.text :description, :null => false t.string :status, :default => "default" t.references :user t.references :category t. end add_index :feature_box_suggestions, :user_id add_index :feature_box_suggestions, :category_id end |