Sha256: 85b8a252a439136c592868d861f1011970c1053eeb6c01e523cdcb6e111b4ece
Contents?: true
Size: 817 Bytes
Versions: 2
Compression:
Stored size: 817 Bytes
Contents
class CreateTorrentPeers < ActiveRecord::Migration def self.up create_table :torrent_peers do |t| t.column :id, :integer, :null => false t.column :torrent_id, :integer t.column :guid, :string, :limit => 40 t.column :ipaddr, :string t.column :port, :integer t.column :uploaded, :integer, :null => false, :default => 0 t.column :downloaded, :integer, :null => false, :default => 0 t.column :remaining, :integer, :null => false, :default => 0 t.column :compact, :integer, :null => false, :default => 0 t.column :event, :integer, :null => false, :default => 0 t.column :key, :string, :limit => 55 t.column :created_at, :timestamp t.column :updated_at, :timestamp end end def self.down drop_table :torrent_peers end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sinatra-s3-0.99 | db/migrate/005_create_torrent_peers.rb |
sinatra-s3-0.98 | db/migrate/005_create_torrent_peers.rb |