Sha256: d6d89ff8ea7942ec934887f283a7766335477669e5b8b268b5ad62b785defa27

Contents?: true

Size: 352 Bytes

Versions: 3

Compression:

Stored size: 352 Bytes

Contents

class AddMaxlengthAndHtml5TypeToCustomizations < ActiveRecord::Migration
  def change
    change_table :tb_commerce_customizations do |t|
      t.integer :maxlength, :limit => 3 #medium int. just in case someone needs people to submit a 800,000 word thesis
      t.string :field_type, :null => false, :default => 'text', :limit => 20
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tb_commerce-0.0.4 db/migrate/20150724171612_add_maxlength_and_html5_type_to_customizations.rb
tb_commerce-0.0.3 db/migrate/20150724171612_add_maxlength_and_html5_type_to_customizations.rb
tb_commerce-0.0.2 db/migrate/20150724171612_add_maxlength_and_html5_type_to_customizations.rb