summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2014-02-21 22:31:38 -0700
committermo khan <mo@mokhan.ca>2014-02-21 22:31:38 -0700
commitb50a9b42f1cddc78f75f75913f39bd19fbf4d8d5 (patch)
treeb112ad20d9bb0c46b63e5bf74ed2d2e050994b11 /db
parent60aa8fa77deaf9d4c90c1ede37caeeff13ee283d (diff)
add well type to licenses table.
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20140222052902_add_well_type_to_licenses.rb5
-rw-r--r--db/schema.rb3
2 files changed, 7 insertions, 1 deletions
diff --git a/db/migrate/20140222052902_add_well_type_to_licenses.rb b/db/migrate/20140222052902_add_well_type_to_licenses.rb
new file mode 100644
index 0000000..bc1dded
--- /dev/null
+++ b/db/migrate/20140222052902_add_well_type_to_licenses.rb
@@ -0,0 +1,5 @@
+class AddWellTypeToLicenses < ActiveRecord::Migration
+ def change
+ add_column :licenses, :well_type_id, :integer
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index aa1c471..d6e0d44 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: 20140222051253) do
+ActiveRecord::Schema.define(version: 20140222052902) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@@ -30,6 +30,7 @@ ActiveRecord::Schema.define(version: 20140222051253) do
t.datetime "expired_at"
t.uuid "company_id"
t.boolean "confidential", default: false
+ t.integer "well_type_id"
end
create_table "well_types", force: true do |t|