Sha256: a1d6aa1b69ea4279f17dec7cd8e99570212443bfd545cf51f5bde6a7becb8f41
Contents?: true
Size: 527 Bytes
Versions: 1
Compression:
Stored size: 527 Bytes
Contents
class CreateFriendingsTable < ActiveRecord::Migration def self.up create_table :friendings, :force => true do |t| t.integer :friendor_id t.integer :friendee_id t.boolean :confirmed, :default => false t.boolean :rejected, :default => false t.timestamps end add_index :friendings, :friendor_id add_index :friendings, :friendee_id end def self.down remove_index :friendings, :friendor_id remove_index :friendings, :friendee_id drop_table :friendings end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
social_engine-0.0.1 | lib/generators/social_engine/install/templates/create_friendings_table.rb |