Sha256: 2bd6b7cc5716a21a2e513bdf25641f0e440c483cfa4ded8c8a6acc47984683e9

Contents?: true

Size: 1.23 KB

Versions: 23

Compression:

Stored size: 1.23 KB

Contents

class CreateTimeTable < ActiveRecord::Migration
  def up
  create_table "time_tables", :force => true do |t|
    t.string   "objectid",      :null => false
    t.integer  "object_version", :default => 1
    t.datetime "creation_time"
    t.string   "creator_id"
    t.string   "version"
    t.string   "comment"
    t.integer  "int_day_types", :default => 0
  end

  add_index "time_tables", ["objectid"], :name => "time_tables_objectid_key", :unique => true

  create_table "time_table_dates", :id => false, :force => true do |t|
    t.integer "time_table_id", :limit => 8, :null => false
    t.date    "date"
    t.integer "position",                 :null => false
  end

  add_index "time_table_dates", ["time_table_id"], :name => "index_time_table_dates_on_time_table_id"

  create_table "time_table_periods", :id => false, :force => true do |t|
    t.integer "time_table_id", :limit => 8, :null => false
    t.date    "period_start"
    t.date    "period_end"
    t.integer "position",                 :null => false
  end

  add_index "time_table_periods", ["time_table_id"], :name => "index_time_table_periods_on_time_table_id"
  end

  def down
    drop_table "time_table_periods"
    drop_table "time_table_dates"
    drop_table "time_tables"
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
ninoxe-1.2.3 db/migrate/20120411144209_create_time_table.rb
ninoxe-1.2.2 db/migrate/20120411144209_create_time_table.rb
ninoxe-1.2.1 db/migrate/20120411144209_create_time_table.rb
ninoxe-1.2.0 db/migrate/20120411144209_create_time_table.rb
ninoxe-1.1.5 db/migrate/20120411144209_create_time_table.rb
ninoxe-1.1.4 db/migrate/20120411144209_create_time_table.rb
ninoxe-1.1.3 db/migrate/20120411144209_create_time_table.rb
ninoxe-1.1.2 db/migrate/20120411144209_create_time_table.rb
ninoxe-1.1.1 db/migrate/20120411144209_create_time_table.rb
ninoxe-1.1.0 db/migrate/20120411144209_create_time_table.rb
ninoxe-1.0.3 db/migrate/20120411144209_create_time_table.rb
ninoxe-1.0.2 db/migrate/20120411144209_create_time_table.rb
ninoxe-1.0.1 db/migrate/20120411144209_create_time_table.rb
ninoxe-1.0.0 db/migrate/20120411144209_create_time_table.rb
ninoxe-0.1.6 db/migrate/20120411144209_create_time_table.rb
ninoxe-0.1.5 db/migrate/20120411144209_create_time_table.rb
ninoxe-0.1.4 db/migrate/20120411144209_create_time_table.rb
ninoxe-0.1.3 db/migrate/20120411144209_create_time_table.rb
ninoxe-0.1.2 db/migrate/20120411144209_create_time_table.rb
ninoxe-0.1.1 db/migrate/20120411144209_create_time_table.rb