summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2016-05-15 20:20:43 -0600
committermo khan <mo@mokhan.ca>2016-05-15 20:20:43 -0600
commiteaf2f8a1f5ed5d17040b1cbf3dc0330495bf27ad (patch)
tree91b9203caf19e5e986b9a9872217f5844714e028 /db
parent026b50ce7ec8e7a2352888697a2ecf7b0d762be5 (diff)
add yelp id to gyms.
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20160515023751_add_yelp_id_to_gyms.rb6
-rw-r--r--db/schema.rb5
2 files changed, 10 insertions, 1 deletions
diff --git a/db/migrate/20160515023751_add_yelp_id_to_gyms.rb b/db/migrate/20160515023751_add_yelp_id_to_gyms.rb
new file mode 100644
index 0000000..9054624
--- /dev/null
+++ b/db/migrate/20160515023751_add_yelp_id_to_gyms.rb
@@ -0,0 +1,6 @@
+class AddYelpIdToGyms < ActiveRecord::Migration
+ def change
+ add_column :gyms, :yelp_id, :string
+ add_index :gyms, :yelp_id
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index eb660c4..73914d1 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: 20160514150039) do
+ActiveRecord::Schema.define(version: 20160515023751) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@@ -45,8 +45,11 @@ ActiveRecord::Schema.define(version: 20160514150039) do
t.string "name", null: false
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
+ t.string "yelp_id"
end
+ add_index "gyms", ["yelp_id"], name: "index_gyms_on_yelp_id", using: :btree
+
create_table "locations", id: :uuid, default: "uuid_generate_v4()", force: :cascade do |t|
t.uuid "locatable_id"
t.string "locatable_type"