Sha256: bfd949f5ba2fb2c62a15b2ab8e826ed961094834fbd940417d3544cccb9bdb44

Contents?: true

Size: 324 Bytes

Versions: 4

Compression:

Stored size: 324 Bytes

Contents

class CreateHonorScorecards < ActiveRecord::Migration
  def change
    create_table :scorecards do |t|
      t.integer :user_id
      t.integer :daily
      t.integer :weekly
      t.integer :monthly
      t.integer :yearly
      t.integer :lifetime

      t.timestamps
    end
    add_index :scorecards, :user_id
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
honor-2.0.1 lib/generators/honor/install/templates/create_honor_scorecards.rb
honor-2.0.0 lib/generators/honor/install/templates/create_honor_scorecards.rb
honor-1.0.3 lib/generators/honor/install/templates/create_honor_scorecards.rb
honor-1.0.2 lib/generators/honor/install/templates/create_honor_scorecards.rb