From 5c89cf15015608dc544a02681209317149f9db36 Mon Sep 17 00:00:00 2001 From: 1resu <1resu@solidaris.me> Date: Sun, 19 Dec 2021 00:18:07 +0100 Subject: [PATCH] Remove unused test data --- db/migrate/001_create_suppliers.rb | 7 ------- 1 file changed, 7 deletions(-) diff --git a/db/migrate/001_create_suppliers.rb b/db/migrate/001_create_suppliers.rb index 1872258..1805c8b 100644 --- a/db/migrate/001_create_suppliers.rb +++ b/db/migrate/001_create_suppliers.rb @@ -1,5 +1,4 @@ class CreateSuppliers < ActiveRecord::Migration[4.2] - SUPPLIER_SAMPLE = 'Sample Supplier' def self.up create_table :suppliers do |t| @@ -17,12 +16,6 @@ class CreateSuppliers < ActiveRecord::Migration[4.2] t.column :updated_on, :datetime end add_index(:suppliers, :name, :unique => true) - - # Create sample supplier... - puts "Creating sample supplier '#{SUPPLIER_SAMPLE}'..." - Supplier.create(:name => SUPPLIER_SAMPLE, :address => "Organic City", :phone => "0123-555555") - raise "Failed!" unless supplier = Supplier.find_by_name(SUPPLIER_SAMPLE) - end def self.down