Skip to content

Commit

Permalink
Add enabled to room activities
Browse files Browse the repository at this point in the history
  • Loading branch information
hmlON committed Jul 23, 2017
1 parent 1a4ad5e commit 1e36c12
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
5 changes: 5 additions & 0 deletions db/migrate/20170723094449_add_enabled_to_room_activities.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class AddEnabledToRoomActivities < ActiveRecord::Migration[5.0]
def change
add_column :room_activities, :enabled, :boolean, default: true
end
end
7 changes: 4 additions & 3 deletions 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: 20170720192353) do
ActiveRecord::Schema.define(version: 20170723094449) do

# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
Expand Down Expand Up @@ -41,8 +41,9 @@
create_table "room_activities", force: :cascade do |t|
t.string "name"
t.integer "room_id"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.boolean "enabled", default: true
t.index ["room_id"], name: "index_room_activities_on_room_id", using: :btree
end

Expand Down

0 comments on commit 1e36c12

Please sign in to comment.