Sha256: 3974bace59cca982511b1f4aa4a1f0eed5e32b05e9cd24cdeea91c32ecdfb399
Contents?: true
Size: 541 Bytes
Versions: 10
Compression:
Stored size: 541 Bytes
Contents
class AddingAds < ActiveRecord::Migration def self.up create_table :ads do |t| t.column :name, :string t.column :html, :text t.column :frequency, :integer t.column :created_at, :datetime t.column :updated_at, :datetime t.column :start_date, :datetime t.column :end_date, :datetime t.column :location, :string t.column :published, :boolean, :default => false t.column :time_constrained, :boolean, :default => false end end def self.down drop_table :ads end end
Version data entries
10 entries across 10 versions & 1 rubygems