Sha256: 9d35ef22420aadf2266ca2d225baaccf9e397ad99a91875e86052a829021eed6
Contents?: true
Size: 690 Bytes
Versions: 5
Compression:
Stored size: 690 Bytes
Contents
class <%= migration_name %> < ActiveRecord::Migration def self.up create_table :papermill_assets do |t| # Paperclip fields (required) t.string :file_file_name t.string :file_content_type t.integer :file_file_size # Papermill fields (required) t.integer :position t.integer :assetable_id t.string :assetable_type t.string :assetable_key t.string :type # Custom fields (optionnals) t.string :title t.string :alt t.string :copyright t.text :description t.timestamps end end def self.down drop_table :papermill_assets end end
Version data entries
5 entries across 5 versions & 1 rubygems