class CreateConfigurations < ActiveRecord::Migration def self.up create_table :configurations do |t| t.column :user_id, :integer, :null => false t.column :ngid, :text, :null => false, :default => '' t.column :ngkeyword, :text, :null => false, :default => '' t.column :ngword, :text, :null => false, :default => '' t.timestamps end end def self.down drop_table :configurations end end