volontariat/voluntary_proposition

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

Summary

Maintainability
A
0 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