Class: CreateFeatureBoxUsers

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

Instance Method Summary collapse

Instance Method Details

#changeObject



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

def change
  create_table :feature_box_users do |t|
    t.string :name, :null => false
    t.boolean :admin, :default => false
    
    t.timestamps
  end
end