Remove unused test data
This commit is contained in:
parent
97444ab902
commit
5c89cf1501
1 changed files with 0 additions and 7 deletions
|
@ -1,5 +1,4 @@
|
||||||
class CreateSuppliers < ActiveRecord::Migration[4.2]
|
class CreateSuppliers < ActiveRecord::Migration[4.2]
|
||||||
SUPPLIER_SAMPLE = 'Sample Supplier'
|
|
||||||
|
|
||||||
def self.up
|
def self.up
|
||||||
create_table :suppliers do |t|
|
create_table :suppliers do |t|
|
||||||
|
@ -17,12 +16,6 @@ class CreateSuppliers < ActiveRecord::Migration[4.2]
|
||||||
t.column :updated_on, :datetime
|
t.column :updated_on, :datetime
|
||||||
end
|
end
|
||||||
add_index(:suppliers, :name, :unique => true)
|
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
|
end
|
||||||
|
|
||||||
def self.down
|
def self.down
|
||||||
|
|
Loading…
Reference in a new issue