Sha256: ca998613e3d2203ddbe16cf1c1c69125db80941560f2bf2736d8f048b3905991

Contents?: true

Size: 365 Bytes

Versions: 5

Compression:

Stored size: 365 Bytes

Contents

class AddReports < ActiveRecord::Migration
  def up
    unless table_exists? :reports
      create_table :reports do |t|
        t.string :name
        t.string :internal_identifier
        t.text   :template
        t.text   :query

        t.timestamps
      end
    end
  end

  def down
    if table.exists? :reports
      drop_table :reports
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rails_db_admin-3.0.0 db/migrate/20121210160131_add_reports.rb
rails_db_admin-2.1.2 db/migrate/20121210160131_add_reports.rb
rails_db_admin-2.1.1 db/migrate/20121210160131_add_reports.rb
rails_db_admin-2.1.0 db/migrate/20121210160131_add_reports.rb
rails_db_admin-2.0.4 db/migrate/20121210160131_add_reports.rb