Some correction of column names.
Support for internal as well as external users. Added column user_type and used it where necessary
This commit is contained in:
@ -0,0 +1,5 @@
|
||||
class AddUserTypeToRequestForComments < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :request_for_comments, :user_type, :string
|
||||
end
|
||||
end
|
7
db/migrate/20150818142251_correct_column_names.rb
Normal file
7
db/migrate/20150818142251_correct_column_names.rb
Normal file
@ -0,0 +1,7 @@
|
||||
class CorrectColumnNames < ActiveRecord::Migration
|
||||
def change
|
||||
rename_column :request_for_comments, :requestorid, :requestor_user_id
|
||||
rename_column :request_for_comments, :exerciseid, :exercise_id
|
||||
rename_column :request_for_comments, :fileid, :file_id
|
||||
end
|
||||
end
|
@ -11,7 +11,7 @@
|
||||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 20150421074734) do
|
||||
ActiveRecord::Schema.define(version: 20150818142251) do
|
||||
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "plpgsql"
|
||||
@ -171,12 +171,13 @@ ActiveRecord::Schema.define(version: 20150421074734) do
|
||||
add_index "internal_users_teams", ["team_id"], name: "index_internal_users_teams_on_team_id", using: :btree
|
||||
|
||||
create_table "request_for_comments", force: true do |t|
|
||||
t.integer "requestorid", null: false
|
||||
t.integer "exerciseid", null: false
|
||||
t.integer "fileid", null: false
|
||||
t.integer "requestor_user_id", null: false
|
||||
t.integer "exercise_id", null: false
|
||||
t.integer "file_id", null: false
|
||||
t.datetime "requested_at"
|
||||
t.datetime "created_at"
|
||||
t.datetime "updated_at"
|
||||
t.string "user_type"
|
||||
end
|
||||
|
||||
create_table "submissions", force: true do |t|
|
||||
|
Reference in New Issue
Block a user