Permalink
Browse files

TradingAccount resource

  • Loading branch information...
1 parent 31ded32 commit 9ad220b62c96aef08305b8f87b467120cdf210c9 Daniel committed Apr 1, 2010
@@ -0,0 +1,2 @@
+class TradingAccountsController < ApplicationController
+end
@@ -0,0 +1,2 @@
+class TradingAccount < ActiveRecord::Base
+end
@@ -0,0 +1,16 @@
+class CreateTradingAccounts < ActiveRecord::Migration
+ def self.up
+ create_table :trading_accounts do |t|
+ t.string :name
+ t.string :website
+ t.string :currency
+ t.string :taxation_country
+
+ t.timestamps
+ end
+ end
+
+ def self.down
+ drop_table :trading_accounts
+ end
+end
@@ -0,0 +1,23 @@
+# 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 => 20100401112207) do
+
+ create_table "trading_accounts", :force => true do |t|
+ t.string "name"
+ t.string "website"
+ t.string "currency"
+ t.string "taxation_country"
+ t.datetime "created_at"
+ t.datetime "updated_at"
+ end
+
+end

0 comments on commit 9ad220b

Please sign in to comment.