Sha256: d59287f3ab26af1a77e2c3b913c863ef3aeac8432207525f90136f441aa8edb6

Contents?: true

Size: 670 Bytes

Versions: 4

Compression:

Stored size: 670 Bytes

Contents

require 'skr/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.config.default_branch_code,
                       null: false,
                       limit: 2
            t.string   "logo"
            t.jsonb    "options"
            t.skr_track_modifications
          end

    end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
stockor-0.5.0 db/migrate/20140220031800_create_skr_locations.rb
stockor-0.4.0 db/migrate/20140220031800_create_skr_locations.rb
stockor-0.3.0 db/migrate/20140220031800_create_skr_locations.rb
stockor-0.2 db/migrate/20140220031800_create_skr_locations.rb