summaryrefslogtreecommitdiff
path: root/db/schema.rb
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2014-02-21 06:57:11 -0700
committermo khan <mo@mokhan.ca>2014-02-21 06:57:11 -0700
commitbd1b2145347c25ee6fba54e306d5e11749e511d0 (patch)
tree6e4f8b450cfdfb8f97ef3c1d024fa23f0822fa36 /db/schema.rb
parentcaaba52706c1aaba8c0831256d597ec85c473dfc (diff)
define relationship between company and licenses and return active licenses.
Diffstat (limited to 'db/schema.rb')
-rw-r--r--db/schema.rb11
1 files changed, 10 insertions, 1 deletions
diff --git a/db/schema.rb b/db/schema.rb
index ace9922..b359b4b 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -11,15 +11,24 @@
#
# It's strongly recommended that you check this file into your version control system.
-ActiveRecord::Schema.define(version: 20140221025310) do
+ActiveRecord::Schema.define(version: 20140221135224) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
enable_extension "uuid-ossp"
+ create_table "companies", id: :uuid, default: "uuid_generate_v4()", force: true do |t|
+ t.string "name"
+ t.datetime "created_at"
+ t.datetime "updated_at"
+ end
+
create_table "licenses", id: :uuid, default: "uuid_generate_v4()", force: true do |t|
t.datetime "created_at"
t.datetime "updated_at"
+ t.datetime "issued_at"
+ t.datetime "expired_at"
+ t.uuid "company_id"
end
end