Class: CreateFeatureBoxCategories

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/generators/feature_box/templates/migrations/01_create_feature_box_categories.rb

Instance Method Summary collapse

Instance Method Details

#changeObject



2
3
4
5
6
7
8
# File 'lib/generators/feature_box/templates/migrations/01_create_feature_box_categories.rb', line 2

def change
  create_table :feature_box_categories do |t|
    t.string :name, :null => false
    
    t.timestamps
  end
end