blob: 01ddef4a797b8f6a6ad38bb27db10772120d05b7 (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
 | class CreateRuleParameterSets < ActiveRecord::Migration
  def up
    unless table_exists? :rule_parameter_sets
      create_table :rule_parameter_sets do |a|
        a.integer :referential_id ,:limit => 8
        a.text :parameters
        a.string :name
        a.timestamps
      end
    end
  end
  def down
    if table_exists? :rule_parameter_sets
      execute "drop table rule_parameter_sets"
      # drop_table :rule_parameter_sets
    end
  end
end
 |