docbrown/db/migrate/20190616053854_create_profile_pins.rb
Ben Halpern dcbb188cf1
Add pinned articles box to profiles (#3269)
* Initial pins work

* Add pin box to profiles

* Fix test snapshot spacing and optimize svg

* Fix listings spacing
2019-06-24 15:18:29 -04:00

13 lines
350 B
Ruby

class CreateProfilePins < ActiveRecord::Migration[5.2]
def change
create_table :profile_pins do |t|
t.bigint :profile_id
t.bigint :pinnable_id
t.string :profile_type
t.string :pinnable_type
t.timestamps
end
add_index("profile_pins", "profile_id")
add_index("profile_pins", "pinnable_id")
end
end