Browse the Ruby on Rails Community.

You are here: Browse Railsplugins Acts As Subscribable

Acts As Subscribable

def self.up create_table :subscriptions, :force => true do |t| t.column :user_id, :integer, :default => 0, :null => false t.column :created_at, :datetime, :null => false t.column :updated_at, :datetime, :null => false t.column :subscribable_id, :integer, :default => 0, :null => false t.column :subscribable_type, :string, :limit => 25, :default => ””, :null => false end

end
def self.down
  drop_table :subscriptions
end

NOTE: This description has been extracted from the Plugin README and so the formatting may need updating to make browser friendly

Users


See all details


Membership

+ Join this railsplugin

Record Maintainer

'None'