1 class CreateHatedaWords < ActiveRecord::Migration
3 create_table :hateda_words do |t|
4 t.column :word_id, :integer, :default => 0, :null => false
5 t.column :name, :string, :limit => 30
6 t.column :upload_at, :datetime
8 add_index :hateda_words, [:word_id], :unique => true
12 drop_table :hateda_words