Rename type column to category to avoid conflict with rails
This commit is contained in:
@ -0,0 +1,5 @@
|
|||||||
|
class RenameEventsTypeToCategory < ActiveRecord::Migration
|
||||||
|
def change
|
||||||
|
rename_column :events, :type, :category
|
||||||
|
end
|
||||||
|
end
|
@ -11,7 +11,7 @@
|
|||||||
#
|
#
|
||||||
# It's strongly recommended that you check this file into your version control system.
|
# It's strongly recommended that you check this file into your version control system.
|
||||||
|
|
||||||
ActiveRecord::Schema.define(version: 20180814145059) do
|
ActiveRecord::Schema.define(version: 20180814154055) do
|
||||||
|
|
||||||
# These are extensions that must be enabled in order to support this database
|
# These are extensions that must be enabled in order to support this database
|
||||||
enable_extension "plpgsql"
|
enable_extension "plpgsql"
|
||||||
@ -96,7 +96,7 @@ ActiveRecord::Schema.define(version: 20180814145059) do
|
|||||||
add_index "errors", ["submission_id"], name: "index_errors_on_submission_id", using: :btree
|
add_index "errors", ["submission_id"], name: "index_errors_on_submission_id", using: :btree
|
||||||
|
|
||||||
create_table "events", force: :cascade do |t|
|
create_table "events", force: :cascade do |t|
|
||||||
t.string "type"
|
t.string "category"
|
||||||
t.string "data"
|
t.string "data"
|
||||||
t.integer "user_id"
|
t.integer "user_id"
|
||||||
t.string "user_type"
|
t.string "user_type"
|
||||||
|
Reference in New Issue
Block a user