mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-06-19 05:13:38 +08:00
15 lines
461 B
Ruby
Vendored
15 lines
461 B
Ruby
Vendored
# frozen_string_literal: true
|
|
class CreateGamificationLeaderboardTable < ActiveRecord::Migration[6.1]
|
|
def change
|
|
create_table :gamification_leaderboards do |t|
|
|
t.string :name, null: false
|
|
t.date :from_date, null: true
|
|
t.date :to_date, null: true
|
|
t.integer :for_category_id, null: true
|
|
t.integer :created_by_id, null: false
|
|
t.timestamps
|
|
end
|
|
|
|
add_index :gamification_leaderboards, [:name], unique: true
|
|
end
|
|
end
|