Skip to content

Commit

Permalink
Merge pull request #41288 from code-dot-org/remove-hidden-column
Browse files Browse the repository at this point in the history
Remove hidden column from script
  • Loading branch information
dmcavoy committed Jun 24, 2021
2 parents fd0384a + aa6fe6c commit eb5a72b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
1 change: 0 additions & 1 deletion dashboard/app/models/script.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
# new_name :string(255)
# family_name :string(255)
# published_state :string(255) default("beta"), not null
# hidden :boolean
#
# Indexes
#
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class RemoveHiddenFromScript < ActiveRecord::Migration[5.2]
def change
remove_column :scripts, :hidden, :boolean
end
end
3 changes: 1 addition & 2 deletions dashboard/db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema.define(version: 2021_06_23_221412) do
ActiveRecord::Schema.define(version: 2021_06_23_222109) do

create_table "activities", id: :integer, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci", force: :cascade do |t|
t.integer "user_id"
Expand Down Expand Up @@ -1507,7 +1507,6 @@
t.string "new_name"
t.string "family_name"
t.string "published_state", default: "beta", null: false
t.boolean "hidden"
t.index ["family_name"], name: "index_scripts_on_family_name"
t.index ["name"], name: "index_scripts_on_name", unique: true
t.index ["new_name"], name: "index_scripts_on_new_name", unique: true
Expand Down

0 comments on commit eb5a72b

Please sign in to comment.