Sha256: f019b76b99c5e2198812c4b0744146051b5d5b51deb75c40ed70a3f1696ee1a2

Contents?: true

Size: 700 Bytes

Versions: 5

Compression:

Stored size: 700 Bytes

Contents

Sequel.migration do
  change do
    create_table(:owners) do
      primary_key :id
      Integer :github_id, :index => true
      foreign_key :assessment_id, :assessments, :on_delete => :cascade, :index => true
      String :login
      String :type, :size => 12, :index => true
      String :url
      String :html_url
      String :avatar_url
      String :name
      String :blog
      String :location
      String :email
      String :bio
      Integer :repositories_count, :index => true, :default => 0
      Integer :blobs_count, :index => true, :default => 0
      Integer :findings_count, :index => true, :default => 0
      DateTime :updated_at
      DateTime :created_at
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
gitrob-1.1.2 db/migrations/003_create_owners.rb
gitrob-1.1.1 db/migrations/003_create_owners.rb
gitrob-1.1.0 db/migrations/003_create_owners.rb
gitrob-1.0.1 db/migrations/003_create_owners.rb
gitrob-1.0.0 db/migrations/003_create_owners.rb