ksylvest/attached — Issue #1: undefined method `attached'
Author: picharras
Created: 2011-11-30 21:15:19+00:00
State: open

Hello, I have this error when migrating on rails 3.1.1

Run:

rake db:migrate
undefined method `attached' for #

My code is:

class CreateVideos < ActiveRecord::Migration
def self.up
create_table :videos do |t|
t.string :title
t.text :description
t.attached :video_hd

t.timestamps
end
end

def self.down
drop_table :videos
end

end