Sha256: 21fb36650facef7e4329c0a054ec1f5bb3695c2b2f84b6619fda5f0c942ce86f

Contents?: true

Size: 308 Bytes

Versions: 10

Compression:

Stored size: 308 Bytes

Contents

class CreateSemesterAttendanceTable < ActiveRecord::Migration

  def change
    create_table :gaku_semester_attendances do |t|
      t.references :semester
      t.references :student

      t.integer :days_present, default: 0
      t.integer :days_absent, default: 0


      t.timestamps
    end
  end

end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
gaku-0.2.4 core/db/migrate/20140715135152_create_semester_attendance_table.rb
gaku_core-0.2.4 db/migrate/20140715135152_create_semester_attendance_table.rb
gaku-0.2.3 core/db/migrate/20140715135152_create_semester_attendance_table.rb
gaku_core-0.2.3 db/migrate/20140715135152_create_semester_attendance_table.rb
gaku-0.2.2 core/db/migrate/20140715135152_create_semester_attendance_table.rb
gaku_core-0.2.2 db/migrate/20140715135152_create_semester_attendance_table.rb
gaku-0.2.1 core/db/migrate/20140715135152_create_semester_attendance_table.rb
gaku_core-0.2.1 db/migrate/20140715135152_create_semester_attendance_table.rb
gaku-0.2.0 core/db/migrate/20140715135152_create_semester_attendance_table.rb
gaku_core-0.2.0 db/migrate/20140715135152_create_semester_attendance_table.rb