Sha256: 5ddfcc85febf2641585f71055d2e3ff0839566f2a55675c65d13777c32a8ab96

Contents?: true

Size: 553 Bytes

Versions: 9

Compression:

Stored size: 553 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.references :root_account, foreign_key: { to_table: 'accounts'}, limit: 8, null: false, index: true

      t.timestamps
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
qalam_merit-4.5.07 lib/merit/generators/active_record/templates/create_merit_badges.erb
qalam_merit-4.5.06 lib/merit/generators/active_record/templates/create_merit_badges.erb
qalam_merit-4.5.05 lib/merit/generators/active_record/templates/create_merit_badges.erb
qalam_merit-4.5.04 lib/merit/generators/active_record/templates/create_merit_badges.erb
qalam_merit-4.5.03 lib/merit/generators/active_record/templates/create_merit_badges.erb
qalam_merit-4.5.02 lib/merit/generators/active_record/templates/create_merit_badges.erb
qalam_merit-4.5.01 lib/merit/generators/active_record/templates/create_merit_badges.erb
qalam_merit-4.5.00 lib/merit/generators/active_record/templates/create_merit_badges.erb
qalam_merit-4.0.4 lib/merit/generators/active_record/templates/create_merit_badges.erb