Sha256: d107313755463401bfdf5bfef01307b070732351d78092b4436fb28b2700dfc7
Contents?: true
Size: 455 Bytes
Versions: 71
Compression:
Stored size: 455 Bytes
Contents
class CreateTaskFiles < ActiveRecord::Migration def self.up add_column :tasks, :notes, :text create_table :task_files do |t| t.column :task_id, :integer, :null => false t.column :name, :string, :limit => 64, :null => false t.column :content_type, :string, :null => false t.column :content_data, :binary, :null => false end end def self.down drop_table :task_files remove_column :tasks, :notes end end
Version data entries
71 entries across 71 versions & 1 rubygems