Permalink
Browse files

Organization

  • Loading branch information...
1 parent 19fcab5 commit 5968c8037dca05afbefa00b54e70d86cfd524a80 @gsterndale gsterndale committed Nov 22, 2011
Showing with 33 additions and 0 deletions.
  1. +2 −0 app/models/organization.rb
  2. +9 −0 db/migrate/20111122142220_create_organizations.rb
  3. +22 −0 db/schema.rb
@@ -0,0 +1,2 @@
+class Organization < ActiveRecord::Base
+end
@@ -0,0 +1,9 @@
+class CreateOrganizations < ActiveRecord::Migration
+ def change
+ create_table :organizations do |t|
+ t.string :name
+
+ t.timestamps
+ end
+ end
+end
View
@@ -0,0 +1,22 @@
+# encoding: UTF-8
+# This file is auto-generated from the current state of the database. Instead
+# of editing this file, please use the migrations feature of Active Record to
+# incrementally modify your database, and then regenerate this schema definition.
+#
+# Note that this schema.rb definition is the authoritative source for your
+# database schema. If you need to create the application database on another
+# system, you should be using db:schema:load, not running all the migrations
+# from scratch. The latter is a flawed and unsustainable approach (the more migrations
+# you'll amass, the slower it'll run and the greater likelihood for issues).
+#
+# It's strongly recommended to check this file into your version control system.
+
+ActiveRecord::Schema.define(:version => 20111122142220) do
+
+ create_table "organizations", :force => true do |t|
+ t.string "name"
+ t.datetime "created_at"
+ t.datetime "updated_at"
+ end
+
+end

0 comments on commit 5968c80

Please sign in to comment.