Sha256: c37b085c3d73d7ab79ac033fc2f38ab0fd25178755c880a72dbff038acdabfec

Contents?: true

Size: 656 Bytes

Versions: 4

Compression:

Stored size: 656 Bytes

Contents

require 'skr/db/migration_helpers'

class CreateTimeEntries < ActiveRecord::Migration
    def change
        create_skr_table :time_entries do |t|
            t.skr_reference :customer_project, single: true
            t.references    :lanes_user,  null: false, index: true, foreign_key: true
            t.boolean       :is_invoiced, null: false, default: false
            t.jsonb         :options,     null: false, default:  {}
            t.datetime      :start_at,    null: false
            t.datetime      :end_at,      null: false
            t.text          :description, null: false
            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/20140327223002_create_time_entries.rb
stockor-0.4.0 db/migrate/20140327223002_create_time_entries.rb
stockor-0.3.0 db/migrate/20140327223002_create_time_entries.rb
stockor-0.2 db/migrate/20140327223002_create_time_entries.rb