mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 07:16:49 +00:00
adds polymorphic option to association definition which includes association type in serializer
regen gemlock regen gemlock better variable naming rubocop fixes adds to changelog adds empty relationship and has_many polymorph tests indent test cleaning -rubocop rubocop rubocop rubocop changelog remove silly .DS fix roque failure fix
This commit is contained in:
10
test/fixtures/active_record.rb
vendored
10
test/fixtures/active_record.rb
vendored
@@ -24,6 +24,16 @@ ActiveRecord::Schema.define do
|
||||
t.string :email
|
||||
t.timestamp null: false
|
||||
end
|
||||
create_table :object_tags, force: true do |t|
|
||||
t.string :poly_tag_id
|
||||
t.string :taggable_type
|
||||
t.string :taggable_id
|
||||
t.timestamp null: false
|
||||
end
|
||||
create_table :poly_tags, force: true do |t|
|
||||
t.string :phrase
|
||||
t.timestamp null: false
|
||||
end
|
||||
create_table :pictures, force: true do |t|
|
||||
t.string :title
|
||||
t.string :imageable_type
|
||||
|
||||
Reference in New Issue
Block a user