Sha256: b31a55cf15a6f5fba04f1c1c73b435795bd04cf844754a3745db27a6952e01e6
Contents?: true
Size: 656 Bytes
Versions: 2
Compression:
Stored size: 656 Bytes
Contents
# This migration comes from spree (originally 20150506181715) class CreateStoreCreditTypes < ActiveRecord::Migration def change create_table :spree_store_credit_types do |t| t.string :name t.integer :priority t.timestamps null: true end add_column :spree_store_credits, :type_id, :integer add_index :spree_store_credits, :type_id add_index :spree_store_credit_types, :priority Spree::StoreCreditType.create_with(priority: 1).find_or_create_by!(name: Spree.t("store_credit.expiring")) Spree::StoreCreditType.create_with(priority: 2).find_or_create_by!(name: Spree.t("store_credit.non_expiring")) end end
Version data entries
2 entries across 2 versions & 1 rubygems