volontariat/voluntary

View on GitHub
dummy/db/migrate/20130606195336_create_professions.voluntary_engine.rb

Summary

Maintainability
A
15 mins
Test Coverage
# This migration comes from voluntary_engine (originally 20121004132105)
class CreateProfessions < ActiveRecord::Migration
  def change
    create_table :professions do |t|
      t.string :name
      t.string :slug
      t.timestamps
    end
    
    remove_column :users, :profession
    add_column :users, :profession_id, :integer
    add_index :users, :profession_id
  end
end