Sha256: dafc59c27c75c7fb68aacab3f8c89ff0cd3f2dfe85c91bbc9d4b994a3d60912f
Contents?: true
Size: 879 Bytes
Versions: 1
Compression:
Stored size: 879 Bytes
Contents
# Create initial schema for the table of news (tiles) from KAG development blog. # # +--------------+----------------------------+ # | Field | Description | # +--------------+----------------------------+ # | id | News id number. | # | title | News title. | # | date | Date, when news were added.| # | author | Author of the news. | # | link | Link to post on the web. | # +--------------+----------------------------+ # Sequel.migration do change do create_table :news do primary_key :id String :title, :size => 255, :null => false DateTime :date String :author, :size => 32, :null => false String :link, :null => false DateTime :created_at DateTime :updated_at end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
artaius-0.2.1 | db/migrations/002_create_news_table.rb |