1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Ensure that using correct alias tracker

Covering #27994 in tests.

Closes #27994.
This commit is contained in:
Ryuta Kamizono 2017-06-25 21:55:38 +09:00
parent 3d9e8d7c11
commit 135437cbb6
2 changed files with 2 additions and 1 deletions

View file

@ -1,4 +1,5 @@
class Membership < ActiveRecord::Base class Membership < ActiveRecord::Base
enum type: %i(Membership CurrentMembership SuperMembership SelectedMembership TenantMembership)
belongs_to :member belongs_to :member
belongs_to :club belongs_to :club
end end

View file

@ -491,7 +491,7 @@ ActiveRecord::Schema.define do
t.datetime :joined_on t.datetime :joined_on
t.integer :club_id, :member_id t.integer :club_id, :member_id
t.boolean :favourite, default: false t.boolean :favourite, default: false
t.string :type t.integer :type
end end
create_table :member_types, force: true do |t| create_table :member_types, force: true do |t|