Sha256: 9bbd2d5e2d3864a453cf2359e005fafd42854cd03f74ec8e55f5179532394661
Contents?: true
Size: 509 Bytes
Versions: 5
Compression:
Stored size: 509 Bytes
Contents
class CreateRegions < ActiveRecord::Migration def self.up create_table :regions do |t| t.string :name t.string :description t.integer :state_id t.integer :country_id t.boolean :active, :default => false t.timestamps end Region.create(:name => 'San Francisco Bay Area', :description => 'Home of the 49ers, Silicon Valley, and redwood trees!', :active => true) end def self.down drop_table :regions end end
Version data entries
5 entries across 5 versions & 1 rubygems