Sha256: 258c17164cf5e56be666104e3a634c83dfa33044e79b85850aebc1de8056e796

Contents?: true

Size: 460 Bytes

Versions: 8

Compression:

Stored size: 460 Bytes

Contents

require 'skr/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

8 entries across 8 versions & 1 rubygems

Version Path
stockor-0.5.0 db/migrate/20140202193318_create_skr_gl_transactions.rb
stockor-0.4.0 db/migrate/20140202193318_create_skr_gl_transactions.rb
stockor-0.3.0 db/migrate/20140202193318_create_skr_gl_transactions.rb
stockor-0.2 db/migrate/20140202193318_create_skr_gl_transactions.rb
stockor-0.1.9 db/migrate/20140202193318_create_skr_gl_transactions.rb
stockor-0.1.8 db/migrate/20140202193318_create_skr_gl_transactions.rb
stockor-0.1.7 db/migrate/20140202193318_create_skr_gl_transactions.rb
stockor-0.1.5 db/migrate/20140202193318_create_skr_gl_transactions.rb