Skip to content

Commit dab3f7b

Browse files
authored
Merge pull request code-dot-org#10128 from code-dot-org/killExperimentActivity
Drops the experiment_activities table.
2 parents a07678b + b836401 commit dab3f7b

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
class DropExperimentActivity < ActiveRecord::Migration
2+
def up
3+
# Since we do not recreate the table on rollback, we conditionally drop it
4+
# on its existence.
5+
drop_table :experiment_activities if ActiveRecord::Base.connection.table_exists? :experiment_activities
6+
end
7+
end

dashboard/db/schema.rb

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#
1212
# It's strongly recommended that you check this file into your version control system.
1313

14-
ActiveRecord::Schema.define(version: 20160818232419) do
14+
ActiveRecord::Schema.define(version: 20160818234153) do
1515

1616
create_table "activities", force: :cascade do |t|
1717
t.integer "user_id", limit: 4
@@ -167,13 +167,6 @@
167167
add_index "districts_users", ["district_id", "user_id"], name: "index_districts_users_on_district_id_and_user_id", using: :btree
168168
add_index "districts_users", ["user_id", "district_id"], name: "index_districts_users_on_user_id_and_district_id", using: :btree
169169

170-
create_table "experiment_activities", force: :cascade do |t|
171-
t.integer "activity_id", limit: 4, null: false
172-
t.string "feedback_design", limit: 255
173-
t.datetime "created_at"
174-
t.datetime "updated_at"
175-
end
176-
177170
create_table "facilitators_workshops", id: false, force: :cascade do |t|
178171
t.integer "workshop_id", limit: 4, null: false
179172
t.integer "facilitator_id", limit: 4, null: false

0 commit comments

Comments
 (0)