aboutsummaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20180128125638_create_terraform_states.rb9
-rw-r--r--db/schema.rb8
2 files changed, 16 insertions, 1 deletions
diff --git a/db/migrate/20180128125638_create_terraform_states.rb b/db/migrate/20180128125638_create_terraform_states.rb
new file mode 100644
index 0000000..1882af9
--- /dev/null
+++ b/db/migrate/20180128125638_create_terraform_states.rb
@@ -0,0 +1,9 @@
+class CreateTerraformStates < ActiveRecord::Migration[5.1]
+ def change
+ create_table :terraform_states do |t|
+ t.json :data
+
+ t.timestamps
+ end
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index 70325bb..a20083e 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
-ActiveRecord::Schema.define(version: 20180127222948) do
+ActiveRecord::Schema.define(version: 20180128125638) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@@ -45,6 +45,12 @@ ActiveRecord::Schema.define(version: 20180127222948) do
t.text "queue", default: "", null: false
end
+ create_table "terraform_states", force: :cascade do |t|
+ t.json "data"
+ t.datetime "created_at", null: false
+ t.datetime "updated_at", null: false
+ end
+
create_table "users", force: :cascade do |t|
t.string "name"
t.string "email"