-
Notifications
You must be signed in to change notification settings - Fork 479
/
match.rb
38 lines (35 loc) · 925 Bytes
/
match.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# == Schema Information
#
# Table name: levels
#
# id :integer not null, primary key
# game_id :integer
# name :string(255) not null
# created_at :datetime
# updated_at :datetime
# level_num :string(255)
# ideal_level_source_id :integer
# solution_level_source_id :integer
# user_id :integer
# properties :text(65535)
# type :string(255)
# md5 :string(255)
# published :boolean default(FALSE), not null
# notes :text(65535)
#
# Indexes
#
# index_levels_on_game_id (game_id)
#
require "csv"
class Match < DSLDefined
def dsl_default
<<ruby
name 'unique level name here'
title 'title'
description 'description here'
question 'Question'
answer 'Answer 1'
ruby
end
end