Sha256: 29024572185053b928969699dbfee5aeb44ae93ce721b5105a783f399d143c82
Contents?: true
Size: 680 Bytes
Versions: 1
Compression:
Stored size: 680 Bytes
Contents
class CreateTinyMceMedia < ActiveRecord::Migration def self.up create_table :tiny_prints do |t| #(Includes the file with image content) t.string :image_file_name #Uploading file/image t.string :image_file_size t.string :image_content_type t.timestamps end create_table :tiny_videos do |t| #(Includes the file with original content) t.string :original_file_name #Uploading file/image t.string :original_file_size t.string :original_content_type t.timestamps end end def self.down drop_table :tiny_prints drop_table :tiny_videos end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rails_tinymce-0.0.1 | generators/rails_tiny_mce_migration/templates/migration.rb |