2012-01-23 19:42:54 +00:00
|
|
|
class ChangeSubscribeableToString < ActiveRecord::Migration
|
|
|
|
def self.up
|
2014-08-20 21:49:26 +01:00
|
|
|
change_column :subscribes, :subscribeable_id, :string, references: nil
|
2012-01-23 19:42:54 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def self.down
|
|
|
|
change_column :subscribes, :subscribeable_id, :integer
|
|
|
|
end
|
|
|
|
end
|