Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unknown attribute 'order' for Rideshare::Trip #2

Open
kirantpatil opened this issue May 27, 2016 · 0 comments
Open

unknown attribute 'order' for Rideshare::Trip #2

kirantpatil opened this issue May 27, 2016 · 0 comments

Comments

@kirantpatil
Copy link

I tried to install this application at model creation time it fails as below

$ bundle exec rake db:drop db:create db:migrate db:sample_data
== 20151015053243 CreateUsers: migrating ======================================
-- create_table(:users)
-> 0.1262s
== 20151015053243 CreateUsers: migrated (0.1265s) =============================

== 20151015053335 CreateTrips: migrating ======================================
-- create_table(:trips)
-> 0.0491s
== 20151015053335 CreateTrips: migrated (0.0494s) =============================

== 20151015053349 CreateTripPools: migrating ==================================
-- create_table(:trip_pools)
-> 0.0493s
== 20151015053349 CreateTripPools: migrated (0.0496s) =========================

== 20151015053521 CreateOrders: migrating =====================================
-- create_table(:orders)
-> 0.1051s
== 20151015053521 CreateOrders: migrated (0.1054s) ============================

== 20151015053631 CreatePayments: migrating ===================================
-- create_table(:payments)
-> 0.2111s
== 20151015053631 CreatePayments: migrated (0.2114s) ==========================

== 20151015054302 CreateServiceTiers: migrating ===============================
-- create_table(:service_tiers)
-> 0.0687s
== 20151015054302 CreateServiceTiers: migrated (0.0689s) ======================

== 20151015054408 CreateVehicles: migrating ===================================
-- create_table(:vehicles)
-> 0.1683s
== 20151015054408 CreateVehicles: migrated (0.1685s) ==========================

== 20151015054409 CreateTripPoolTrips: migrating ==============================
-- create_table(:trip_pool_trips)
-> 0.0524s
== 20151015054409 CreateTripPoolTrips: migrated (0.0527s) =====================

== 20151016201632 RenameUserPasswordToPasswordDigest: migrating ===============
-- rename_column(:users, :password, :password_digest)
-> 0.0064s
== 20151016201632 RenameUserPasswordToPasswordDigest: migrated (0.0067s) ======

== 20151016203057 AddDriverIdToTrips: migrating ===============================
-- add_column(:trips, :driver_id, :integer)
-> 0.0017s
-- add_column(:trips, :passenger_id, :integer)
-> 0.0015s
== 20151016203057 AddDriverIdToTrips: migrated (0.0037s) ======================

== 20151017043133 CreateVehicleTypes: migrating ===============================
-- create_table(:vehicle_types)
-> 0.0955s
-- add_index(:vehicle_types, :name)
-> 0.0495s
== 20151017043133 CreateVehicleTypes: migrated (0.1454s) ======================

== 20151017045903 RemoveServiceTierIdFromVehicles: migrating ==================
-- remove_column(:vehicles, :service_tier_id)
-> 0.0032s
== 20151017045903 RemoveServiceTierIdFromVehicles: migrated (0.0034s) =========

== 20151017050348 AddForeignKeysToTripPoolTrips: migrating ====================
-- add_column(:trip_pool_trips, :trip_pool_id, :integer, {:null=>false})
-> 0.0020s
-- add_column(:trip_pool_trips, :trip_id, :integer, {:null=>false})
-> 0.0011s
== 20151017050348 AddForeignKeysToTripPoolTrips: migrated (0.0035s) ===========

== 20151017055817 ChangeServiceTierDefault: migrating =========================
-- add_column(:trips, :service_tier_id, :integer, {:null=>false})
-> 0.0018s
== 20151017055817 ChangeServiceTierDefault: migrated (0.0020s) ================

== 20151017060402 AddIndexOnUsersEmail: migrating =============================
-- add_index(:users, :email, {:unique=>true})
-> 0.0552s
== 20151017060402 AddIndexOnUsersEmail: migrated (0.0554s) ====================

== 20151017151520 AddVehicleTypeIdToVehicles: migrating =======================
-- add_column(:vehicles, :vehicle_type_id, :integer)
-> 0.0021s
== 20151017151520 AddVehicleTypeIdToVehicles: migrated (0.0025s) ==============

== 20151017222052 CreateInvoices: migrating ===================================
-- create_table(:invoices)
-> 0.0637s
== 20151017222052 CreateInvoices: migrated (0.0639s) ==========================

== 20151017222434 DropUserIdAndTripIdFromTrips: migrating =====================
-- remove_column(:payments, :user_id)
-> 0.0027s
-- remove_column(:payments, :trip_id)
-> 0.0022s
-- add_column(:payments, :invoice_id, :integer, {:null=>false})
-> 0.0014s
== 20151017222434 DropUserIdAndTripIdFromTrips: migrated (0.0068s) ============

== 20151018165856 CreateRestaurants: migrating ================================
-- create_table(:restaurants)
-> 0.1130s
== 20151018165856 CreateRestaurants: migrated (0.1133s) =======================

== 20151018165934 CreateMenus: migrating ======================================
-- create_table(:menus)
-> 0.1602s
== 20151018165934 CreateMenus: migrated (0.1605s) =============================

== 20151018170104 CreateMenuItems: migrating ==================================
-- create_table(:menu_items)
-> 0.1444s
== 20151018170104 CreateMenuItems: migrated (0.1447s) =========================

== 20151018171206 CreateOrderMenuItems: migrating =============================
-- create_table(:order_menu_items)
-> 0.1658s
== 20151018171206 CreateOrderMenuItems: migrated (0.1660s) ====================

== 20151018171530 CreateInflationAdjustments: migrating =======================
-- create_table(:inflation_adjustments)
-> 0.0517s
== 20151018171530 CreateInflationAdjustments: migrated (0.0519s) ==============

== 20151018213052 AddOrderIdToTrips: migrating ================================
-- add_reference(:trips, :order, {:index=>true, :foreign_key=>true})
-> 0.0567s
== 20151018213052 AddOrderIdToTrips: migrated (0.0569s) =======================

== 20151018213901 AddServiceTierIdToUsers: migrating ==========================
-- add_reference(:users, :service_tier, {:index=>true, :foreign_key=>true})
-> 0.0729s
== 20151018213901 AddServiceTierIdToUsers: migrated (0.0732s) =================

Creating sample data...
I found an error. Aborting...

<ActiveRecord::UnknownAttributeError: unknown attribute 'order' for Rideshare::Trip.>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant