Sha256: cf20f2f8274ec701d2757ee2ae72b9d01c59e72cfefaa7aea415d02d2d671803
Contents?: true
Size: 664 Bytes
Versions: 11
Compression:
Stored size: 664 Bytes
Contents
class AddRelationships < ActiveRecord::Migration def change create_table :relationships do |t| t.integer :person_id, :null => false t.integer :relation_id, :null => false t.integer :other_id, :null => false t.integer :inverse_id t.timestamps end create_table :relations do |t| t.string :description t.boolean :person_can_be_individual, :default => false t.boolean :person_can_be_company, :default => false t.boolean :other_can_be_individual, :default => false t.boolean :other_can_be_company, :default => false t.integer :inverse_id t.timestamps end end end
Version data entries
11 entries across 11 versions & 1 rubygems