nbudin/devise_cas_authenticatable — Issue #37: Migration Issue with devise 2.0.0 & rails 3.2.1
Author: logical42
Created: 2012-02-16 19:37:24+00:00
State: open

Hello! I've been trying to get this gem configured with for a rails 3.2 cas client, but i'm working with a legacy database which already has a username column..

my migration file looks like this:

```ruby
class AddCasAuthenticatableToUsers < ActiveRecord::Migration
def change
change_table :users do |t|
t.cas_authenticatable
end
end
end

```
and in the console I get the following output:

```unix
== AddCasAuthenticatableToUsers: migrating ===================================
-- change_table(:users)

[DEVISE] You are using t.database_authenticatable and others in your migration and this feature is deprecated. Please simply use Rails helpers instead as mentioned here:
https://github.com/plataformatec/devise/wiki/How-To:-Upgrade-to-Devise-2.0-migration-schema-style

rake aborted!
An error has occurred, this and all later migrations canceled:

PGError: ERROR: column "username" of relation "users" already exists
: ALTER TABLE "users" ADD COLUMN "username" character varying(255)

```

is it okay to skip the migration altogether?