summaryrefslogtreecommitdiff
path: root/db/migrate/20130410123523_create_generic_files.rb
blob: a91f341c0bad9779eb1043c85fc0f67657619609 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
class CreateGenericFiles < ActiveRecord::Migration
  def self.up
    create_table :generic_files do |t|
      t.string :name
      t.string :file
      t.string :file_type
      t.string :category
      t.integer :owner_id
      t.string :owner_type
      t.timestamps
    end
  end

  def self.down
    drop_table :generic_files
  end
end