Skip to content

Commit 4e92dd4

Browse files
committed
Add num_printings field to illustrators.
1 parent c7f74c8 commit 4e92dd4

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
class AddNumPrintingsToIllustrators < ActiveRecord::Migration[7.0]
2+
def change
3+
add_column :illustrators, :num_printings, :integer
4+
end
5+
end

db/schema.rb

Lines changed: 2 additions & 1 deletion
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[7.0].define(version: 2022_11_25_065640) do
13+
ActiveRecord::Schema[7.0].define(version: 2022_11_25_223355) do
1414
# These are extensions that must be enabled in order to support this database
1515
enable_extension "plpgsql"
1616

@@ -148,6 +148,7 @@
148148
t.string "name"
149149
t.datetime "created_at", null: false
150150
t.datetime "updated_at", null: false
151+
t.integer "num_printings"
151152
end
152153

153154
create_table "illustrators_printings", id: false, force: :cascade do |t|

0 commit comments

Comments
 (0)