Skip to content
Snippets Groups Projects
Commit 83a336be authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Add utf-8 coding cookies for Emacs.

parent 221d32dd
No related branches found
No related tags found
No related merge requests found
# -*- coding: utf-8 -*-
class CreateSchedules < ActiveRecord::Migration class CreateSchedules < ActiveRecord::Migration
def self.up def self.up
create_table (:schedules, create_table (:schedules,
......
# -*- coding: utf-8 -*-
class CreateRecurringItems < ActiveRecord::Migration class CreateRecurringItems < ActiveRecord::Migration
def self.up def self.up
create_table (:recurring_items, create_table (:recurring_items,
:options => 'ENGINE=InnoDB DEFAULT CHARSET=utf8') do |t| :options => 'ENGINE=InnoDB DEFAULT CHARSET=utf8') do |t|
t.column :description, :string t.column :description, :string
t.column :amount, :integer
t.column :startdate, :date
t.column :enddate, :date
t.column :schedule_id, :integer
t.column :created_on, :timestamp t.column :created_on, :timestamp
t.column :updated_on, :timestamp t.column :updated_on, :timestamp
end end
RecurringItem.create :description => "Pers lön", :amount => "22200", RecurringItem.create :description => "Pers lön"
:startdate => Date.civil(2006, 8, 25), RecurringItem.create :description => "Telia"
:schedule_id => Schedule.find_by_name("Månad").id
RecurringItem.create :description => "Telia", :amount => "-1200",
:startdate => Date.civil(2006, 9, 10),
:schedule_id => Schedule.find_by_name("Kvartal").id
end end
def self.down def self.down
......
# -*- coding: utf-8 -*-
class CreateSaldos < ActiveRecord::Migration class CreateSaldos < ActiveRecord::Migration
def self.up def self.up
create_table (:saldos, create_table (:saldos,
......
# -*- coding: utf-8 -*-
class CreateAccounts < ActiveRecord::Migration class CreateAccounts < ActiveRecord::Migration
def self.up def self.up
create_table (:accounts, create_table (:accounts,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment