Commit b0805a9a
Changed files (4)
app
models
db
spec
models
app/models/category.rb
@@ -0,0 +1,2 @@
+class Category < ActiveRecord::Base
+end
db/migrate/20110803020957_create_categories.rb
@@ -0,0 +1,13 @@
+class CreateCategories < ActiveRecord::Migration
+ def self.up
+ create_table :categories do |t|
+ t.string :name
+
+ t.timestamps
+ end
+ end
+
+ def self.down
+ drop_table :categories
+ end
+end
db/schema.rb
@@ -10,7 +10,7 @@
#
# It's strongly recommended to check this file into your version control system.
-ActiveRecord::Schema.define(:version => 20110505035236) do
+ActiveRecord::Schema.define(:version => 20110803020957) do
create_table "authentications", :force => true do |t|
t.integer "user_id"
@@ -20,6 +20,12 @@ ActiveRecord::Schema.define(:version => 20110505035236) do
t.datetime "updated_at"
end
+ create_table "categories", :force => true do |t|
+ t.string "name"
+ t.datetime "created_at"
+ t.datetime "updated_at"
+ end
+
create_table "creations", :force => true do |t|
t.string "name"
t.text "story"
spec/models/category_spec.rb
@@ -0,0 +1,5 @@
+require 'spec_helper'
+
+describe Category do
+ pending "add some examples to (or delete) #{__FILE__}"
+end