mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-31 22:38:49 +01:00
Workaround for bug in sqlite (adapter?) that requires column names on rename column statements to be strings, not symbols. Fixes ticket 579
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@609 a4c988fc-2ded-0310-b66e-134b36920a42
This commit is contained in:
parent
dd2f530f74
commit
5bff7f610d
1 changed files with 1 additions and 1 deletions
|
|
@ -1,6 +1,6 @@
|
|||
class AddRememberMeToUser < ActiveRecord::Migration
|
||||
def self.up
|
||||
rename_column :users, :password, :crypted_password
|
||||
rename_column :users, 'password', 'crypted_password' #bug in sqlite requires column names as strings
|
||||
add_column :users, :remember_token, :string
|
||||
add_column :users, :remember_token_expires_at, :datetime
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue