volontariat/voluntary

View on GitHub
dummy/db/migrate/20130606195340_create_organizations.voluntary_engine.rb

Summary

Maintainability
A
15 mins
Test Coverage
# This migration comes from voluntary_engine (originally 20121028073712)
class CreateOrganizations < ActiveRecord::Migration
  def change
    create_table :organizations do |t|
      t.string :name
      t.string :slug
      t.timestamps
    end
    
    add_index :organizations, :slug
    add_column :projects, :organization_id, :integer
    add_index :projects, :organization_id
  end
end