page.rb
639 Bytes
# -*- encoding : utf-8 -*-
# Author - Igor Portela - igorportela.com | Copyright(c) 2013. All rights reserved.
# == Schema Information
#
# Table name: pages
#
# id :integer(4) not null, primary key
# title :string(255)
# text :text
# created_at :datetime not null
# updated_at :datetime not null
# video :string(255)
class Page < ActiveRecord::Base
#has_attached_file :video, :styles => { :medium => "300x300>", :thumb => "100x100>" }
#default_scope("created_at desc")
attr_accessible :id, :title, :text, :video, :remove_video, :video_cache
mount_uploader :video, VideoUploader
end