Matchu
b6e18e10a5
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!
13 lines
362 B
Ruby
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
|