Class: CreateSourceFiles

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/generators/dunlop/install/source_files/templates/migrations/create_source_files.rb

Instance Method Summary collapse

Instance Method Details

#changeObject



2
3
4
5
6
7
8
9
10
11
12
13
# File 'lib/generators/dunlop/install/source_files/templates/migrations/create_source_files.rb', line 2

def change
  create_table :source_files do |t|
    t.string   :sti_type
    t.string   :state
    t.string   :description
    t.integer  :number_of_records
    t.integer  :user_id
    t.integer  :duration
    t.string   :original_file
    t.timestamps null: false
  end
end