Sha256: 29e1de5259cc725823ef79f29e0c2e3ddb8e6af9eda94cfe1693cc26710cfb71
Contents?: true
Size: 406 Bytes
Versions: 2
Compression:
Stored size: 406 Bytes
Contents
class AddWpns < ActiveRecord::Migration module Rapns class Notification < ActiveRecord::Base self.table_name = 'rapns_notifications' end end def self.up add_column :rapns_notifications, :uri, :string, :null => true end def self.down AddWpns::Rapns::Notification.where(:type => 'Rapns::Wpns::Notification').delete_all remove_column :rapns_notifications, :uri end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rpush-1.0.0-java | lib/generators/templates/add_wpns.rb |
rpush-1.0.0 | lib/generators/templates/add_wpns.rb |