mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-05-24 08:52:14 -04:00
Added plant_part attribute to harvest
This commit is contained in:
@@ -3,7 +3,7 @@ class Harvest < ActiveRecord::Base
|
||||
friendly_id :harvest_slug, use: :slugged
|
||||
|
||||
attr_accessible :crop_id, :harvested_at, :description, :owner_id,
|
||||
:quantity, :unit, :weight_quantity, :weight_unit, :slug
|
||||
:quantity, :unit, :weight_quantity, :weight_unit, :plant_part, :slug
|
||||
|
||||
belongs_to :crop
|
||||
belongs_to :owner, :class_name => 'Member'
|
||||
|
||||
5
db/migrate/20131029053113_add_plant_part_to_harvests.rb
Normal file
5
db/migrate/20131029053113_add_plant_part_to_harvests.rb
Normal file
@@ -0,0 +1,5 @@
|
||||
class AddPlantPartToHarvests < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :harvests, :plant_part, :string
|
||||
end
|
||||
end
|
||||
@@ -11,7 +11,7 @@
|
||||
#
|
||||
# It's strongly recommended to check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(:version => 20131025104228) do
|
||||
ActiveRecord::Schema.define(:version => 20131029053113) do
|
||||
|
||||
create_table "account_types", :force => true do |t|
|
||||
t.string "name", :null => false
|
||||
@@ -105,6 +105,7 @@ ActiveRecord::Schema.define(:version => 20131025104228) do
|
||||
t.string "slug"
|
||||
t.decimal "weight_quantity"
|
||||
t.string "weight_unit"
|
||||
t.string "plant_part"
|
||||
end
|
||||
|
||||
create_table "members", :force => true do |t|
|
||||
|
||||
Reference in New Issue
Block a user