class CreateContainers < ActiveRecord::Migration def self.up create_table :containers do |t| t.column :container_key, :string, :limit => 64, :null => false t.column :sim, :string, :limit => 64, :null => false t.column :position, :string, :limit => 40, :null => false t.column :delay, :integer, :null => false, :default => 30 t.column :created_at, :datetime t.column :updated_at, :datetime end end def self.down drop_table :containers end end