summaryrefslogtreecommitdiff
path: root/db/migrate/20090424085851_create_assets.rb
blob: f6373b1f3ee8f83648a46604efc46d54bc712c93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
class CreateAssets < ActiveRecord::Migration[4.2]
  def self.up
    create_table :assets do |t|
      t.string    :name
      t.string    :upload_file_name
      t.string    :upload_content_type
      t.integer   :upload_file_size
      t.datetime  :upload_updated_at
      t.timestamps
    end
  end

  def self.down
    drop_table :assets
  end
end