Sha256: 9b09f1661f0e3790db55047d8af6547534381d68a8a158ec7002725ed85b9a8d

Contents?: true

Size: 299 Bytes

Versions: 1

Compression:

Stored size: 299 Bytes

Contents

class CreateReadActivityMarks < ActiveRecord::Migration
  def change
    create_table :read_activity_marks do |t|
      t.references :reader, null: false, index: true
      t.references :readable, polymorphic: true, index: true
      t.integer :mark, default: 0

      t.timestamps
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
read_activity-0.1.0 lib/generators/read_activity/templates/create_read_activity_marks.rb