Sha256: 50d583909cc2c857b827373bd3230991670de2f40683d6a351baf8b39ec0ae29

Contents?: true

Size: 607 Bytes

Versions: 4

Compression:

Stored size: 607 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.skr_track_modifications
          end

    end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
stockor-0.1.9 db/migrate/20140220031800_create_skr_locations.rb
stockor-0.1.8 db/migrate/20140220031800_create_skr_locations.rb
stockor-0.1.7 db/migrate/20140220031800_create_skr_locations.rb
stockor-0.1.5 db/migrate/20140220031800_create_skr_locations.rb