diff options
author | AndrewMurrell <amurrel@purdue.edu> | 2014-02-18 18:34:50 -0500 |
---|---|---|
committer | AndrewMurrell <amurrel@purdue.edu> | 2014-02-18 18:34:50 -0500 |
commit | 1b95d76d2bded709f512ccdca851388b8691708f (patch) | |
tree | d1246a9eefa7883d04a0976b3f89941004ece6db | |
parent | 94a5654371812905c154f29cef393d42f13c5eaa (diff) |
Updated generate and added basic instruction block comment.
-rw-r--r-- | db/migrate/20140304014722_create_servers.rb (renamed from db/migrate/20140304014711_create_servers.rb) | 0 | ||||
-rw-r--r-- | db/migrate/20140304014725_create_tournaments.rb (renamed from db/migrate/20140304014713_create_tournaments.rb) | 0 | ||||
-rw-r--r-- | db/migrate/20140304014727_create_matches.rb (renamed from db/migrate/20140304014715_create_matches.rb) | 0 | ||||
-rw-r--r-- | db/migrate/20140304014729_create_teams.rb (renamed from db/migrate/20140304014718_create_teams.rb) | 0 | ||||
-rw-r--r-- | db/migrate/20140304014731_create_users.rb (renamed from db/migrate/20140304014720_create_users.rb) | 0 | ||||
-rw-r--r-- | db/schema.rb | 41 | ||||
-rwxr-xr-x | generate.sh | 10 |
7 files changed, 51 insertions, 0 deletions
diff --git a/db/migrate/20140304014711_create_servers.rb b/db/migrate/20140304014722_create_servers.rb index f33241a..f33241a 100644 --- a/db/migrate/20140304014711_create_servers.rb +++ b/db/migrate/20140304014722_create_servers.rb diff --git a/db/migrate/20140304014713_create_tournaments.rb b/db/migrate/20140304014725_create_tournaments.rb index 2095590..2095590 100644 --- a/db/migrate/20140304014713_create_tournaments.rb +++ b/db/migrate/20140304014725_create_tournaments.rb diff --git a/db/migrate/20140304014715_create_matches.rb b/db/migrate/20140304014727_create_matches.rb index 1478e75..1478e75 100644 --- a/db/migrate/20140304014715_create_matches.rb +++ b/db/migrate/20140304014727_create_matches.rb diff --git a/db/migrate/20140304014718_create_teams.rb b/db/migrate/20140304014729_create_teams.rb index dd8397d..dd8397d 100644 --- a/db/migrate/20140304014718_create_teams.rb +++ b/db/migrate/20140304014729_create_teams.rb diff --git a/db/migrate/20140304014720_create_users.rb b/db/migrate/20140304014731_create_users.rb index 163109f..163109f 100644 --- a/db/migrate/20140304014720_create_users.rb +++ b/db/migrate/20140304014731_create_users.rb diff --git a/db/schema.rb b/db/schema.rb new file mode 100644 index 0000000..1f34ab7 --- /dev/null +++ b/db/schema.rb @@ -0,0 +1,41 @@ +# encoding: UTF-8 +# This file is auto-generated from the current state of the database. Instead +# of editing this file, please use the migrations feature of Active Record to +# incrementally modify your database, and then regenerate this schema definition. +# +# Note that this schema.rb definition is the authoritative source for your +# database schema. If you need to create the application database on another +# system, you should be using db:schema:load, not running all the migrations +# from scratch. The latter is a flawed and unsustainable approach (the more migrations +# you'll amass, the slower it'll run and the greater likelihood for issues). +# +# It's strongly recommended that you check this file into your version control system. + +ActiveRecord::Schema.define(version: 20140304014731) do + + create_table "matches", force: true do |t| + t.datetime "created_at" + t.datetime "updated_at" + end + + create_table "servers", force: true do |t| + t.datetime "created_at" + t.datetime "updated_at" + end + + create_table "teams", force: true do |t| + t.datetime "created_at" + t.datetime "updated_at" + end + + create_table "tournaments", force: true do |t| + t.datetime "created_at" + t.datetime "updated_at" + end + + create_table "users", force: true do |t| + t.datetime "created_at" + t.datetime "updated_at" + end + +end diff --git a/generate.sh b/generate.sh index 04a1294..95f00cc 100755 --- a/generate.sh +++ b/generate.sh @@ -1,8 +1,18 @@ #!/bin/bash +# +# To Start Rails Server: +# bundle exec rails server +# +# +# + + bundle exec rails generate scaffold server bundle exec rails generate scaffold tournament bundle exec rails generate scaffold match bundle exec rails generate scaffold team bundle exec rails generate scaffold user +bundle exec rake db:drop RAILS_ENV=development +bundle exec rake db:migrate RAILS_ENV=development #bundle exec rails generate scaffold |