Sha256: ee19a6bfe0077e839376261d022c0734557a4a91ff033ed258eae7d6848258b0

Contents?: true

Size: 656 Bytes

Versions: 8

Compression:

Stored size: 656 Bytes

Contents

class CreateHubstatsComments < ActiveRecord::Migration
  def change
    create_table :hubstats_comments do |t|
      t.integer :id
      t.string :html_url
      t.string :url
      t.string :pull_request_url
      t.string :diff_hunk
      t.integer :path
      t.integer :position
      t.string :original_position
      t.string :line
      t.string :commit_id
      t.string :original_commit_id
      t.string :body
      t.string :kind
      t.belongs_to :user
      t.belongs_to :pull_request
      t.belongs_to :repo
      t.timestamps
    end

    add_index :hubstats_comments, :user_id
    add_index :hubstats_comments, :pull_request_id
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
hubstats-0.0.8 db/migrate/20140604130504_create_hubstats_comments.rb
hubstats-0.0.7 db/migrate/20140604130504_create_hubstats_comments.rb
hubstats-0.0.6 db/migrate/20140604130504_create_hubstats_comments.rb
hubstats-0.0.5 db/migrate/20140604130504_create_hubstats_comments.rb
hubstats-0.0.4 db/migrate/20140604130504_create_hubstats_comments.rb
hubstats-0.0.3 db/migrate/20140604130504_create_hubstats_comments.rb
hubstats-0.0.2 db/migrate/20140604130504_create_hubstats_comments.rb
hubstats-0.0.1 db/migrate/20140604130504_create_hubstats_comments.rb