Sha256: e688665c9ee0cb8f4a97246569a07214971e7fde3d11d012e128c5422b424216

Contents?: true

Size: 465 Bytes

Versions: 1

Compression:

Stored size: 465 Bytes

Contents

require 'skr/core/db/migration_helpers'

class CreateSkrGlTransactions < ActiveRecord::Migration
    def change

        create_skr_table "gl_transactions" do |t|
            t.skr_reference "period",       to_table: 'gl_periods'
            t.belongs_to    "source",       polymorphic: true
            t.text          "description",  null: false
            t.skr_track_modifications       create_only: true # since it can't be updated
          end

    end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
stockor-core-0.2 db/migrate/20140202193318_create_skr_gl_transactions.rb