Class: CreateCarrierwaveFiles
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateCarrierwaveFiles
- Defined in:
- lib/generators/templates/create_carrierwave_files.rb
Instance Method Summary collapse
Instance Method Details
#change ⇒ Object
2 3 4 5 6 7 8 9 10 11 |
# File 'lib/generators/templates/create_carrierwave_files.rb', line 2 def change create_table :carrier_wave_files do |t| t.string :identifier t.string :original_filename t.string :content_type t.string :size t.binary :data t. end end |