Sha256: 68deb8d694b1499fe9503f038f55498bbb81604e1c5e462a7cf36a1245874551

Contents?: true

Size: 1.33 KB

Versions: 19

Compression:

Stored size: 1.33 KB

Contents

ActiveRecord::Schema.define do

  create_table :pacioli_companies, :force => true do |t|
    t.integer :companyable_id
    t.string :companyable_type
    t.string :name

    t.timestamps
  end

  create_table :pacioli_parties, :force => true do |t|
    t.references :pacioli_company
    t.integer :partyable_id
    t.string :partyable_type
    t.string :type
    t.string :name

    t.timestamps
  end

  create_table :pacioli_accounts, :force => true do |t|
    t.references :pacioli_company
    t.string :code
    t.string :name
    t.string :description
    t.string :type

    t.timestamps
  end

  create_table :pacioli_journal_entries, :force => true do |t|
    t.string :journal_type
    t.string :description
    t.references :pacioli_company
    t.decimal :amount, :precision => 20, :scale => 10

    t.integer :source_documentable_id
    t.string :source_documentable_type

    t.datetime :dated
    t.timestamps
  end

  create_table :pacioli_transactions, :force => true do |t|
    t.references :pacioli_journal_entry
    t.references :pacioli_account
    t.references :pacioli_party

    t.string :type
    t.decimal :amount, :precision => 20, :scale => 10

    t.datetime :dated
    t.timestamps
  end

  create_table :pacioli_posting_rules, :force => true do |t|
    t.references :pacioli_company
    t.string :name
    t.text :rules
  end
  
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
pacioli-0.0.29 spec/internal/db/schema.rb
pacioli-0.0.28 spec/internal/db/schema.rb
pacioli-0.0.27 spec/internal/db/schema.rb
pacioli-0.0.26 spec/internal/db/schema.rb
pacioli-0.0.25 spec/internal/db/schema.rb
pacioli-0.0.24 spec/internal/db/schema.rb
pacioli-0.0.23 spec/internal/db/schema.rb
pacioli-0.0.22 spec/internal/db/schema.rb
pacioli-0.0.21 spec/internal/db/schema.rb
pacioli-0.0.20 spec/internal/db/schema.rb
pacioli-0.0.19 spec/internal/db/schema.rb
pacioli-0.0.18 spec/internal/db/schema.rb
pacioli-0.0.17 spec/internal/db/schema.rb
pacioli-0.0.16 spec/internal/db/schema.rb
pacioli-0.0.15 spec/internal/db/schema.rb
pacioli-0.0.14 spec/internal/db/schema.rb
pacioli-0.0.13 spec/internal/db/schema.rb
pacioli-0.0.12 spec/internal/db/schema.rb
pacioli-0.0.11 spec/internal/db/schema.rb