docbrown/db/migrate/20181020195949_create_html_variant_trials.rb
Ben Halpern 302e8f202d
Add HTML variants for cta optimization and other nav bar adjustments (#970)
* 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
2018-10-22 17:03:57 -04:00

10 lines
293 B
Ruby

class CreateHtmlVariantTrials < ActiveRecord::Migration[5.1]
def change
create_table :html_variant_trials do |t|
t.integer :html_variant_id
t.integer :article_id
t.timestamps
end
add_index :html_variant_trials, [:html_variant_id, :article_id]
end
end