docbrown/db/migrate/20160926164412_create_reactions.rb
leewynne 5b50d52b5f Replaced hard coded AWS region in carrierwave.rb and sitemaps.rb. Updated legacy migration files to include pre rails 5 version (this resolved new instances on Heroku) (#4874) [deploy]
* missing rails version 4.2 added to pre 5 migrations

* updated carrierwave.rb and sitemap.rb with AWS_DEFAULT_REGION
2019-11-22 09:07:59 -05:00

13 lines
340 B
Ruby

class CreateReactions < ActiveRecord::Migration[4.2]
def change
create_table :reactions do |t|
t.integer :user_id
t.integer :reactable_id
t.string :reactable_type
t.string :category
t.float :points, default: 1.0
t.timestamps null: false
end
add_index("reactions", "user_id")
end
end