summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2014-02-22 08:00:50 -0700
committermo khan <mo@mokhan.ca>2014-02-22 08:00:50 -0700
commit86036fa0e99d77b34edf16349b1e681db660558f (patch)
tree107d8bb986c3ebfe90aa39f1a38cb89487369fa2 /db
parentb675903ccb615c1f1868cd46095fec140a4198ae (diff)
add applicant name to json response.
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20140222145409_add_name_to_users.rb6
-rw-r--r--db/schema.rb4
2 files changed, 9 insertions, 1 deletions
diff --git a/db/migrate/20140222145409_add_name_to_users.rb b/db/migrate/20140222145409_add_name_to_users.rb
new file mode 100644
index 0000000..2f30a88
--- /dev/null
+++ b/db/migrate/20140222145409_add_name_to_users.rb
@@ -0,0 +1,6 @@
+class AddNameToUsers < ActiveRecord::Migration
+ def change
+ add_column :users, :first_name, :string
+ add_column :users, :last_name, :string
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index d58c3ae..f102db8 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
-ActiveRecord::Schema.define(version: 20140222055630) do
+ActiveRecord::Schema.define(version: 20140222145409) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@@ -47,6 +47,8 @@ ActiveRecord::Schema.define(version: 20140222055630) do
t.uuid "company_id"
t.datetime "created_at"
t.datetime "updated_at"
+ t.string "first_name"
+ t.string "last_name"
end
create_table "well_types", force: true do |t|