Sha256: 88d76ddd3693b6ef481470d3813c31f5b4fe29250b936fefec6790a60e6bc5cb
Contents?: true
Size: 424 Bytes
Versions: 10
Compression:
Stored size: 424 Bytes
Contents
require 'rubygems' require 'active_record' class CreateEntries < ActiveRecord::Migration def self.up create_table "entries", :force => true do |t| t.column :title, :string, :limit => 100 t.column :updated_on, :datetime t.column :content, :text t.column :rating, :decimal, :precision => 10 end end def self.down drop_table "entries" end end class Entry < ActiveRecord::Base end
Version data entries
10 entries across 10 versions & 2 rubygems