Sha256: 50b5592b41c1a30e3da5cb9a30ef9827e94343e1e0a41364841b7890fadc346d
Contents?: true
Size: 488 Bytes
Versions: 94
Compression:
Stored size: 488 Bytes
Contents
class CreateAddresses < ActiveRecord::Migration def change create_table :addresses do |t| t.string :firstname, :null => false t.string :lastname, :null => false t.string :address1, :null => false t.string :address2 t.string :city, :null => false t.string :state_id, :null => false # because both text states and ids are allowed t.references :country, :null => false t.string :zip, :null => false t.timestamps end end end
Version data entries
94 entries across 94 versions & 1 rubygems