Sha256: b09237579e52dc72d30820af1d3e5ac1f011cec75f4ae32b519d128e93eb0770

Contents?: true

Size: 313 Bytes

Versions: 6

Compression:

Stored size: 313 Bytes

Contents

class CreateSemesterAttendanceTable < ActiveRecord::Migration[4.2]

  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

6 entries across 6 versions & 1 rubygems

Version Path
gaku_core-0.3.0 db/migrate/20140715135152_create_semester_attendance_table.rb
gaku_core-0.3.0.pre.4 db/migrate/20140715135152_create_semester_attendance_table.rb
gaku_core-0.3.0.pre.3 db/migrate/20140715135152_create_semester_attendance_table.rb
gaku_core-0.3.0.pre.2 db/migrate/20140715135152_create_semester_attendance_table.rb
gaku_core-0.3.0.pre.1 db/migrate/20140715135152_create_semester_attendance_table.rb
gaku_core-0.3.0.pre.0 db/migrate/20140715135152_create_semester_attendance_table.rb