Sha256: 9839f79728ba4a2761d4ce21e9816937e99dd00f4668a3f8c9ff9c658a9e89f2
Contents?: true
Size: 534 Bytes
Versions: 32
Compression:
Stored size: 534 Bytes
Contents
class CreateRefinerycmsResourcesSchema < ActiveRecord::Migration def self.up create_table ::Resource.table_name, :force => true do |t| t.string "file_mime_type" t.string "file_name" t.integer "file_size" t.datetime "created_at" t.datetime "updated_at" t.string "file_uid" t.string "file_ext" end end def self.down [::Resource].reject{|m| !(defined?(m) and m.respond_to?(:table_name)) }.each do |model| drop_table model.table_name end end end
Version data entries
32 entries across 32 versions & 2 rubygems