* missing rails version 4.2 added to pre 5 migrations * updated carrierwave.rb and sitemap.rb with AWS_DEFAULT_REGION
13 lines
340 B
Ruby
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
|