Class: CreatePrograms
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreatePrograms
- Defined in:
- lib/db/migrate/000_create_programs.rb
Class Method Summary collapse
Class Method Details
.down ⇒ Object
11 12 13 |
# File 'lib/db/migrate/000_create_programs.rb', line 11 def self.down drop_table :programs end |
.up ⇒ Object
2 3 4 5 6 7 8 9 |
# File 'lib/db/migrate/000_create_programs.rb', line 2 def self.up create_table :programs do |t| t.string :live_id, :default => '', :null => false t.datetime :base_time, :default => 0, :null => false t.text :title t.references :community, :default => 0, :null => false end end |