Sha256: 839c322d2fd2fee0eb95b20837bb845a43f7d2f3749167e0cc33672b8ca3a4b5
Contents?: true
Size: 551 Bytes
Versions: 10
Compression:
Stored size: 551 Bytes
Contents
class CreateAssets < ActiveRecord::Migration def self.up create_table :assets do |t| t.column :filename, :string t.column :width, :integer t.column :height, :integer t.column :content_type, :string t.column :size, :integer t.column :attachable_type, :string t.column :attachable_id, :integer t.column :updated_at, :datetime t.column :created_at, :datetime t.column :thumbnail, :string t.column :parent_id, :integer end end def self.down drop_table :assets end end
Version data entries
10 entries across 10 versions & 1 rubygems