mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-08 23:18:18 -07:00
working on question_lists
This commit is contained in:
parent
d731049fc6
commit
cc84c3bbda
26 changed files with 498 additions and 10 deletions
11
db/migrate/20170305155018_create_question_lists.rb
Normal file
11
db/migrate/20170305155018_create_question_lists.rb
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
class CreateQuestionLists < ActiveRecord::Migration[5.0]
|
||||
def change
|
||||
create_table :question_lists do |t|
|
||||
t.string :name
|
||||
t.text :description
|
||||
t.text :question_ids
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
10
db/schema.rb
10
db/schema.rb
|
|
@ -10,7 +10,7 @@
|
|||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 20170304020530) do
|
||||
ActiveRecord::Schema.define(version: 20170305155018) do
|
||||
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "plpgsql"
|
||||
|
|
@ -32,6 +32,14 @@ ActiveRecord::Schema.define(version: 20170304020530) do
|
|||
t.datetime "updated_at", null: false
|
||||
end
|
||||
|
||||
create_table "question_lists", force: :cascade do |t|
|
||||
t.string "name"
|
||||
t.text "description"
|
||||
t.text "question_ids"
|
||||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
end
|
||||
|
||||
create_table "questions", force: :cascade do |t|
|
||||
t.string "text"
|
||||
t.string "option1"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue