* Add HTML variants for cta optimization and other nav bar adjustments * Fix 1==1 non-random mistake * Spruce up org call-to-action * Change default text color * Add html variant trial and success request specs * Fix article sidebar caching issue * One line adjustment * Modify schema * Add include ActionView::Helpers::TagHelper to user_tag_spec * Modify follow_button to remove session context * Dummy commit * Change Edit Article to Edit Post * Dummy commit * Fix rubocop concerns * Fix rubocop style
15 lines
410 B
Ruby
15 lines
410 B
Ruby
class CreateHtmlVariants < ActiveRecord::Migration[5.1]
|
|
def change
|
|
create_table :html_variants do |t|
|
|
t.integer :user_id
|
|
t.string :group
|
|
t.string :name
|
|
t.text :html
|
|
t.string :target_tag
|
|
t.float :success_rate, default: 0.0
|
|
t.boolean :published, default: false
|
|
t.boolean :approved, default: false
|
|
t.timestamps
|
|
end
|
|
end
|
|
end
|