...
Code Block |
---|
class AddUsernameToUsers < ActiveRecord::Migration[5.1] def change add_column :users, :username, :string end end |
Run rails db:migrate
\uD83D\uDCCB Related articles
Filter by label (Content by label) | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...
Code Block |
---|
class AddUsernameToUsers < ActiveRecord::Migration[5.1] def change add_column :users, :username, :string end end |
Run rails db:migrate
Filter by label (Content by label) | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|