20120101000100_postmaster_filter_create.rb 881 B

12345678910111213141516171819202122
  1. class PostmasterFilterCreate < ActiveRecord::Migration
  2. def up
  3. create_table :postmaster_filters do |t|
  4. t.column :name, :string, :limit => 250, :null => false
  5. t.column :channel, :string, :limit => 250, :null => false
  6. t.column :match, :string, :limit => 5000, :null => false
  7. t.column :perform, :string, :limit => 5000, :null => false
  8. t.column :active, :boolean, :null => false, :default => true
  9. t.column :note, :string, :limit => 250, :null => true
  10. t.column :updated_by_id, :integer, :null => false
  11. t.column :created_by_id, :integer, :null => false
  12. t.timestamps
  13. end
  14. add_index :postmaster_filters, [:channel]
  15. # add_column :groups, :email_address_id, :integer, :null => true
  16. end
  17. def down
  18. end
  19. end