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

#199: added column rename, rephrased comment

parent 218576c5
class RemoveDeviseSpecificColumnsFromUsers < ActiveRecord::Migration
def change
rename_column :users, :encrypted_password, :password_digest
end
end
......@@ -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
......
......@@ -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"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment