Sha256: d53cc21c007b6f510081dbfefb80ca21bc55736d8f56b01291bf7834f87c9535
Contents?: true
Size: 585 Bytes
Versions: 33
Compression:
Stored size: 585 Bytes
Contents
class CreateIformats < ActiveRecord::Migration def self.up add_column :sites, :formats_updated_at, :datetime create_table(:iformats, :options => Zena::Db.table_options) do |t| t.column :name, :string, :limit => 40 t.column :site_id, :integer t.column :created_at, :datetime t.column :updated_at, :datetime t.column :size, :integer t.column :gravity, :integer t.column :width, :integer t.column :height, :integer end end def self.down drop_table :iformats remove_column :sites, :formats_updated_at end end
Version data entries
33 entries across 33 versions & 1 rubygems