volontariat/voluntary_scholarship

View on GitHub
dummy/db/migrate/20140310182713_create_scholarship_programs.voluntary_scholarship_engine.rb

Summary

Maintainability
A
0 mins
Test Coverage
# This migration comes from voluntary_scholarship_engine (originally 20140310181004)
class CreateScholarshipPrograms < ActiveRecord::Migration
  def change
    create_table :scholarship_programs do |t|
      t.integer :organization_id
      t.string :name
      t.text :text
      t.timestamps
    end 
    
    add_index :scholarship_programs, [:organization_id, :name], unique: true
  end
end