Skip to content

Commit 91e4da3

Browse files
committed
Add 'counter' column to Dojo model for joint registrations #610
1 parent 11b5e09 commit 91e4da3

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
class AddCounterToDojo < ActiveRecord::Migration[5.2]
2+
def change
3+
add_column :dojos, :counter, :integer, null: false, default: 1
4+
end
5+
end

db/schema.rb

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#
1111
# It's strongly recommended that you check this file into your version control system.
1212

13-
ActiveRecord::Schema.define(version: 20190812033029) do
13+
ActiveRecord::Schema.define(version: 2020_06_21_020249) do
1414

1515
# These are extensions that must be enabled in order to support this database
1616
enable_extension "plpgsql"
@@ -38,6 +38,7 @@
3838
t.integer "prefecture_id"
3939
t.boolean "is_active", default: true, null: false
4040
t.boolean "is_private", default: false, null: false
41+
t.integer "counter", default: 1, null: false
4142
end
4243

4344
create_table "event_histories", id: :serial, force: :cascade do |t|

0 commit comments

Comments
 (0)