2013-01-25 13:01:02 +00:00
|
|
|
class ChangeUsersMemberToInteger < ActiveRecord::Migration
|
2014-02-09 02:13:45 +00:00
|
|
|
def up
|
|
|
|
execute 'ALTER TABLE users ALTER COLUMN member TYPE integer USING (member::integer)'
|
|
|
|
end
|
|
|
|
|
|
|
|
def down
|
|
|
|
execute 'ALTER TABLE users ALTER COLUMN member TYPE text USING (member::text)'
|
2013-01-25 13:01:02 +00:00
|
|
|
end
|
|
|
|
end
|