Horje
how to I change the name of a column in rails Code Example
how to I change the name of a column in rails
$ rails g migration rename_season_to_season_id

class RenameSeasonToSeasonId < ActiveRecord::Migration
  def change
    rename_column :shoes, :season, :season_id
  end
end




18

Related
kill puma pid local Code Example kill puma pid local Code Example
contains ruby array Code Example contains ruby array Code Example
how to delete a table in rails Code Example how to delete a table in rails Code Example
rails kill server Code Example rails kill server Code Example
destroy existed port Code Example destroy existed port Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
10