Commit 6b90c42b authored by Ponder Stibbons's avatar Ponder Stibbons
Browse files

#199: added column rename, rephrased comment

parent 218576c5
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
class RemoveDeviseSpecificColumnsFromUsers < ActiveRecord::Migration

  def change
    rename_column :users, :encrypted_password, :password_digest
  end

end
+1 −1
Original line number Diff line number Diff line
@@ -10,7 +10,7 @@ class ChangeConferenceDayStartType < ActiveRecord::Migration
    # At least PostgreSQL is not willing to change the type from time to integer
    # without telling it how to do the conversion. To stay database independent,
    # we create a new column, remove the old one and then rename the new column
    # to the old columns name in the hope of staying database independent.
    # to the old columns name 
    add_column :conferences, :new_day_start, :integer, default: 8, null: false
    remove_column :conferences, :day_start
    rename_column :conferences, :new_day_start, :day_start
+1 −1
Original line number Diff line number Diff line
@@ -389,7 +389,7 @@ ActiveRecord::Schema.define(version: 20160512102627) do

  create_table "users", force: :cascade do |t|
    t.string   "email",                default: "",          null: false
    t.string   "encrypted_password",   default: "",          null: false
    t.string   "password_digest",      default: "",          null: false
    t.string   "reset_password_token"
    t.datetime "remember_created_at"
    t.string   "remember_token"