Sha256: 0e0f363756e33042752bf9cac68ecb4a02f2dfae2277d6eaca2e2d85d6103bfb

Contents?: true

Size: 1.19 KB

Versions: 8

Compression:

Stored size: 1.19 KB

Contents

class CreateHubstatsRepos < ActiveRecord::Migration
  def change
    create_table :hubstats_repos do |t|
      t.integer :id
      t.string :name
      t.string :full_name
      t.string :homepage
      t.string :language
      t.string :description
      t.string :default_branch
      t.string :url
      t.string :html_url
      t.string :clone_url
      t.string :git_url
      t.string :ssh_url
      t.string :svn_url
      t.string :mirror_url
      t.string :hooks_url
      t.string :issue_events_url
      t.string :events_url
      t.string :contributors_url
      t.string :git_commits_url
      t.string :issue_comment_url
      t.string :merges_url
      t.string :issues_url
      t.string :pulls_url
      t.string :labels_url
      t.integer :forks_count
      t.integer :stargazers_count
      t.integer :watches_count
      t.integer :size 
      t.integer :open_issues_count
      t.boolean :has_issues
      t.boolean :has_wiki
      t.boolean :has_downloads
      t.boolean :private
      t.boolean :fork
      t.datetime :pushed_at
      t.datetime :created_at
      t.datetime :updated_at
      t.belongs_to :owner
      t.timestamps
    end

     add_index :hubstats_repos, :owner_id
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

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