Sha256: 4d1594057fd11714b7dc5a21358f2808a8addcb3d982ab5b3fb04e09c3fe6a6d
Contents?: true
Size: 575 Bytes
Versions: 21
Compression:
Stored size: 575 Bytes
Contents
class CreateTemplateInputSets < ActiveRecord::Migration def change create_table :foreign_input_sets do |t| t.integer :template_id, :null => false t.integer :target_template_id, :null => false t.boolean :include_all, :null => false, :default => true t.text :include t.text :exclude end add_index :foreign_input_sets, :template_id add_foreign_key :foreign_input_sets, :templates add_index :foreign_input_sets, :target_template_id add_foreign_key :foreign_input_sets, :templates, :column => :target_template_id end end
Version data entries
21 entries across 21 versions & 1 rubygems