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

Version Path
artfully_ose-1.3.0.pre4 db/migrate/20130916194547_add_relationships.rb
artfully_ose-1.3.0.pre3 db/migrate/20130916194547_add_relationships.rb
artfully_ose-1.3.0.pre2 db/migrate/20130916194547_add_relationships.rb
artfully_ose-1.3.0.pre1 db/migrate/20130916194547_add_relationships.rb
artfully_ose-1.2.0 db/migrate/20130916194547_add_relationships.rb
artfully_ose-1.2.0.beta.1 db/migrate/20130916194547_add_relationships.rb
artfully_ose-1.2.0.alpha.2 db/migrate/20130916194547_add_relationships.rb
artfully_ose-1.2.0.alpha.1 db/migrate/20130916194547_add_relationships.rb
artfully_ose-1.2.0.pre.27 db/migrate/20130916194547_add_relationships.rb
artfully_ose-1.2.0.pre.26 db/migrate/20130916194547_add_relationships.rb
artfully_ose-1.2.0.pre.24 db/migrate/20130916194547_add_relationships.rb