Sha256: 219ddb2c7959821153b3c03876719a5781a779670df6842acab3b42ac928937a
Contents?: true
Size: 607 Bytes
Versions: 1
Compression:
Stored size: 607 Bytes
Contents
class <%= migration_name %> < ActiveRecord::Migration def self.up create_table :papermill_assets do |t| # mandatory t.string :file_file_name t.string :file_content_type t.integer :file_file_size t.integer :position t.integer :assetable_id t.string :assetable_type t.string :assetable_key t.string :type t.string :title # optionnal t.text :description t.string :copyright t.string :alt t.timestamps end end def self.down drop_table :papermill_assets end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
papermill-0.16.0 | generators/papermill_table/templates/migrate/papermill_migration.rb.erb |