Drop step and step_params table

pull/280/head
Rick Carlino 2016-10-06 13:44:50 -05:00
parent 9ba91ccd37
commit 66ffafa827
2 changed files with 7 additions and 16 deletions

View File

@ -0,0 +1,6 @@
class DropStepsAndStepParams < ActiveRecord::Migration
def change
drop_table :step_params
drop_table :steps
end
end

View File

@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20161006154039) do
ActiveRecord::Schema.define(version: 20161006182657) do
create_table "devices", force: :cascade do |t|
t.integer "planting_area_id", limit: 4
@ -67,20 +67,6 @@ ActiveRecord::Schema.define(version: 20161006154039) do
t.string "color", limit: 255
end
create_table "step_params", force: :cascade do |t|
t.string "key", limit: 255
t.string "value", limit: 255
t.integer "step_id", limit: 4
end
add_index "step_params", ["step_id"], name: "index_step_params_on_step_id", using: :btree
create_table "steps", force: :cascade do |t|
t.integer "sequence_id", limit: 4
t.string "message_type", limit: 255
t.integer "position", limit: 4
end
create_table "users", force: :cascade do |t|
t.integer "device_id", limit: 4
t.string "name", limit: 255
@ -101,5 +87,4 @@ ActiveRecord::Schema.define(version: 20161006154039) do
add_index "users", ["email"], name: "index_users_on_email", unique: true, using: :btree
add_index "users", ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true, using: :btree
add_foreign_key "step_params", "steps"
end