Sha256: 1c0fd2348c1feb877529baa35125d9574bacb78a7a16be0ec8818eb6a99c22da
Contents?: true
Size: 436 Bytes
Versions: 2
Compression:
Stored size: 436 Bytes
Contents
# This migration comes from rails_db_admin (originally 20121210160131) 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rails_db_admin-2.1.1 | spec/dummy/db/migrate/20121227215524_add_reports.rails_db_admin.rb |
rails_db_admin-2.1.0 | spec/dummy/db/migrate/20121227215524_add_reports.rails_db_admin.rb |