Sha256: eec126c624cc250763c870082be8cc75f84db51e257d421a638ae8bc60c1e8d2

Contents?: true

Size: 282 Bytes

Versions: 6

Compression:

Stored size: 282 Bytes

Contents

class AddStylesheetTextToDesigns < ActiveRecord::Migration
  def table_prefix
    table_prefix = 'newsletter_'
    begin
      table_prefix = ::Newsletter.table_prefix
    rescue
    end
  end
  def change
    add_column :"#{table_prefix}designs", :stylesheet_text, :text
  end
end

Version data entries

6 entries across 3 versions & 1 rubygems

Version Path
newsletter-3.2.25.1 db/migrate/003_add_stylesheet_text_to_designs.rb
newsletter-3.2.25.1 spec/test_app/db/migrate/20150507195612_add_stylesheet_text_to_designs.rb
newsletter-3.2.22.0 db/migrate/003_add_stylesheet_text_to_designs.rb
newsletter-3.2.22.0 spec/test_app/db/migrate/20150507195612_add_stylesheet_text_to_designs.rb
newsletter-3.2.7 db/migrate/003_add_stylesheet_text_to_designs.rb
newsletter-3.2.7 spec/test_app/db/migrate/20150507195612_add_stylesheet_text_to_designs.rb