You can create one hyphen and put this code into it. It will give you an array of all the tables (minus the "schema_migrations" table that Rails automatically creates) and add the column (s) to each of them.
tables = ActiveRecord::Base.connection.tables - ["schema_migrations"] tables.each do |table| add_column table, :created_by, :integer end
source share