Sha256: cb5fbc3524f067ae0abda48aa0d3d9e262df67cd18897ec0554d20b7a9b5656d

Contents?: true

Size: 384 Bytes

Versions: 4

Compression:

Stored size: 384 Bytes

Contents

class CreateScoresAndPoints < ActiveRecord::Migration<%= migration_version %>
  def change
    create_table :merit_scores do |t|
      t.references :sash
      t.string :category, default: 'default'
    end

    create_table :merit_score_points do |t|
      t.references :score
      t.bigint :num_points, default: 0
      t.string :log
      t.datetime :created_at
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
merit-4.0.3 lib/merit/generators/active_record/templates/create_scores_and_points.erb
merit-4.0.2 lib/merit/generators/active_record/templates/create_scores_and_points.erb
merit-4.0.1 lib/merit/generators/active_record/templates/create_scores_and_points.erb
merit-4.0.0 lib/merit/generators/active_record/templates/create_scores_and_points.erb