impress/db/migrate/20240507235742_create_nc_mall_records.rb
Matchu b6e18e10a5 Add bare-bones rails nc_mall:sync task, incl. NCMallRecord model
Currently we only load the homepage, so there's only actually one
wearable item to sync up! But here's the task to do it!

To do this, we also created the backing model NCMallRecord, where we'll
save the current NC Mall state!
2024-05-07 17:40:14 -07:00

13 lines
362 B
Ruby

class CreateNCMallRecords < ActiveRecord::Migration[7.1]
def change
create_table :nc_mall_records do |t|
t.references :item, type: :integer, null: false, foreign_key: true
t.integer :price, null: false
t.integer :discount_price
t.datetime :discount_begins_at
t.datetime :discount_ends_at
t.timestamps
end
end
end