class CreateInitStructure < ActiveRecord::Migration def up # this can't apply in production or staging, -- and schema.rb captures this test/dev environments return if ENV['RAILS_ENV'] == 'production' ActiveRecord::Base.connection.execute(IO.read(File.expand_path("../../init_db.sql", __FILE__))) end end