I am reading through "Agile Web Development with Rails" 3rd edition. My
question is this;
The book seems to suggest that development should be done using sqlite3
and that the testing and/or production can be switched to some other
database. Now it does not say you have to do it this way and even
Ugis Ozols wrote:
> Hello,
>
> Here's my version of your migration file: http://gist.github.com/313327
>
> Changed t.int to t.integer as i dont think rails understand int as in
> integer (maybe i'm wrong here). Although changed table name to
> aropenitems so it's in plural all over migration file
Created the following Ruby Migration program 001_create_aropenitems.rb
class CreateAropenitems < ActiveRecord::Migration
def self.up
create_table :aropenitem do |t|
t.int :cust_no
t.date :doc_date
t.integer :doc_no
t.string :doc_type, :limit => 1
t.integer :appl
3 matches
Mail list logo