Renamed realname to name in users table
We do not necessarily need the real name. A nickname would be sufficient.
This commit is contained in:
parent
20397c5411
commit
464fc0de95
2 changed files with 7 additions and 2 deletions
|
|
@ -0,0 +1,5 @@
|
||||||
|
class RenameUserRealnameToName < ActiveRecord::Migration[5.0]
|
||||||
|
def change
|
||||||
|
rename_column :users, :realname, :name
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
@ -10,7 +10,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: 20160812085722) do
|
ActiveRecord::Schema.define(version: 20170405144026) 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"
|
||||||
|
|
@ -63,7 +63,7 @@ ActiveRecord::Schema.define(version: 20160812085722) do
|
||||||
end
|
end
|
||||||
|
|
||||||
create_table "users", force: :cascade do |t|
|
create_table "users", force: :cascade do |t|
|
||||||
t.text "realname"
|
t.text "name"
|
||||||
t.datetime "created_at", null: false
|
t.datetime "created_at", null: false
|
||||||
t.datetime "updated_at", null: false
|
t.datetime "updated_at", null: false
|
||||||
t.string "email", default: "", null: false
|
t.string "email", default: "", null: false
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue