Sha256: 15f03ecdf337ad26ac02a7d159ae940821ae3479784c1831c041fa1a7558b42b

Contents?: true

Size: 618 Bytes

Versions: 1

Compression:

Stored size: 618 Bytes

Contents

require 'skr/core/db/migration_helpers'

class CreateSkrLocations < ActiveRecord::Migration
    def change

        create_skr_table "locations" do |t|
            t.skr_code_identifier
            t.string   "name",           null: false
            t.skr_reference :address,    null: false, single: true
            t.boolean  "is_active",      null: false, default: true
            t.string   "gl_branch_code",
                       default: Skr::Core.config.default_branch_code,
                       null: false,
                       limit: 2
            t.skr_track_modifications
          end

    end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
stockor-core-0.2 db/migrate/20140220031800_create_skr_locations.rb