Skip to content

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
...
  • 7 commits
  • 5 files changed
  • 0 commit comments
  • 2 contributors
Showing with 23 additions and 30 deletions.
  1. +1 −0 Gemfile
  2. +3 −0 app/models/repo.rb
  3. +0 −30 config/database_example.yml
  4. +11 −0 db/migrate/20120911125344_create_repos.rb
  5. +8 −0 db/schema.rb
View
1 Gemfile
@@ -8,6 +8,7 @@ gem "omniauth"
gem "omniauth-github"
gem "omniauth-facebook"
gem "pg"
+gem "gh"
# Gems used only for assets and not required
# in production environments by default.
View
3 app/models/repo.rb
@@ -0,0 +1,3 @@
+class Repo < ActiveRecord::Base
+ attr_accessible :full_name, :name, :user_id
+end
View
30 config/database_example.yml
@@ -1,30 +0,0 @@
-# SQLite version 3.x
-# gem install sqlite3
-#
-# Ensure the SQLite 3 gem is defined in your Gemfile
-# gem 'sqlite3'
-development:
- adapter: postgresql
- encoding: unicode
- database: repopular_dev
- pool: 5
- username: alexanderkoppel
- password:
-
-# Warning: The database defined as "test" will be erased and
-# re-generated from your development database when you run "rake".
-# Do not set this db to the same as development or production.
-test:
- adapter: postgresql
- encoding: unicode
- database: repopular_test
- pool: 5
- timeout: 5000
- username:
-
-production:
- adapter: postgresql
- encoding: unicode
- database: repopular
- pool: 5
- timeout: 5000
View
11 db/migrate/20120911125344_create_repos.rb
@@ -0,0 +1,11 @@
+class CreateRepos < ActiveRecord::Migration
+ def change
+ create_table :repos do |t|
+ t.integer :user_id
+ t.string :full_name
+ t.string :name
+
+ t.timestamps
+ end
+ end
+end
View
8 db/schema.rb
@@ -13,6 +13,14 @@
ActiveRecord::Schema.define(:version => 20120911131521) do
+ create_table "repos", :force => true do |t|
+ t.integer "user_id"
+ t.string "full_name"
+ t.string "name"
+ t.datetime "created_at", :null => false
+ t.datetime "updated_at", :null => false
+ end
+
create_table "users", :force => true do |t|
t.string "name"
t.string "fb_id"

No commit comments for this range

Something went wrong with that request. Please try again.