Sha256: 13f713a752b0d44107ada20536375397c64dbfbe647fefc169b5e0b67fd8e3f9

Contents?: true

Size: 446 Bytes

Versions: 4

Compression:

Stored size: 446 Bytes

Contents

### QALAM_MERIT ###
class CreateMeritBadges < ActiveRecord::Migration<%= migration_version %>
  def change
    create_table :merit_badges do |t|
      t.string :name
      t.integer :level, default: 1
      t.integer :points, default: 0
      t.text :description
      t.string :difficulty
      t.boolean :active, default: true
      t.references :user, limit: 8, foreign_key: true, index: true, null: true

      t.timestamps
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
qalam_merit-4.5.11 lib/merit/generators/active_record/templates/create_merit_badges.erb
qalam_merit-4.5.10 lib/merit/generators/active_record/templates/create_merit_badges.erb
qalam_merit-4.5.09 lib/merit/generators/active_record/templates/create_merit_badges.erb
qalam_merit-4.5.08 lib/merit/generators/active_record/templates/create_merit_badges.erb